码迷,mamicode.com
首页 >  
搜索关键字:without    ( 3201个结果
Linked List Cycle leetcode java (链表检测环)
题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?题解:这道题连带着II是很经典的,在看CC150时候,纠结这个问题纠结了很久....
分类:编程语言   时间:2014-07-23 12:02:26    阅读次数:311
POJ Code the Tree 树的pufer编号
Code the TreeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2259Accepted: 859DescriptionA tree (i.e. a connected graph without cycles) with ...
分类:其他好文   时间:2014-07-22 23:07:52    阅读次数:237
leetCode解题报告5道题(六)
题目一:Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, ...
分类:其他好文   时间:2014-07-22 23:04:12    阅读次数:246
JavaScript Patterns 6.7 Borrowing Methods
You want to use just the methods you like, without inheriting all the other methods that you’ll never need. This is possible with the borrowing method...
分类:编程语言   时间:2014-07-22 22:41:33    阅读次数:291
mysql无法启动——cannot allocate the memory for the buffer pool
今天打开开发网站突然不能使用,发现时Mysql数据库down掉了,就去重启: mysql.server restart 一直会报错:“Manager of pid-file quit without updating file”。 然后就去找原因,网上说有以下三个方面的问题: 1、硬盘不够用了,无法写入pid文件 2、进程卡死了,找到mysql进程kill掉,然后重启 3、目录权限...
分类:数据库   时间:2014-07-22 17:53:52    阅读次数:274
Python ctypes中cast/py_object用法
class ctypes.py_objectRepresents the C PyObject * datatype. Calling this without an argument creates a NULL PyObject * pointer.示例:>>> dc = {'a':'aaa',...
分类:编程语言   时间:2014-07-22 00:28:38    阅读次数:373
[leetcode]Reorder List
Reorder ListGiven a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' val...
分类:其他好文   时间:2014-07-22 00:16:36    阅读次数:230
hdu4632Palindrome subsequence (求回文数,区间DP)
Problem Description In mathematics, a subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements. For example, ...
分类:其他好文   时间:2014-07-21 11:13:44    阅读次数:270
LeetCode || Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 判断一个int值是否为回文数。 本题有几点需要注意: (1)不能用额外存储空间,也就是说只能用常数空间解决;诸如将int转换为string再去比较字符是不可行的; (2)判断回文数的方法有两个:从中间开始向两头判断、从两头向中间判断;后者更简...
分类:其他好文   时间:2014-07-19 23:22:39    阅读次数:345
[leetcode]Linked List Cycle II
Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without u...
分类:其他好文   时间:2014-07-19 18:18:51    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!