Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Linked ListTwo Pointers''...
分类:
其他好文 时间:
2014-11-18 23:25:09
阅读次数:
170
7.4.Serialization—How to Pack DataIt's easy enough to send text data across the network, you're finding, but what happens if you want to send some "bi...
分类:
其他好文 时间:
2014-10-31 11:35:37
阅读次数:
151
Dancing Links(DLX)的个人心得。...
分类:
其他好文 时间:
2014-10-29 17:12:07
阅读次数:
237
Finding crossesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1501Accepted Submission(s): 802Prob...
分类:
其他好文 时间:
2014-10-21 21:26:38
阅读次数:
292
Abstract. A root-finding algorithm is a numerical method, or algorithm, for finding a value x such that f(x)=0, for a given function f. Such an x is c...
分类:
其他好文 时间:
2014-10-21 21:14:26
阅读次数:
333
Find the intersection of two sorted arrays.Let’s called array1 as A and array2 as B, each with size m and n.The obvious brute-force solution is to sca...
分类:
其他好文 时间:
2014-10-09 14:20:13
阅读次数:
161
题意:给你一个0,1矩阵 ,求精确覆盖解题思路:DLX解题代码: 1 // File Name: poj3740.cpp 2 // Author: darkdream 3 // Created Time: 2014年10月04日 星期六 20时06分31秒 4 5 #include 6...
分类:
其他好文 时间:
2014-10-04 23:35:38
阅读次数:
187
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 16202
Accepted: 4349
Description
Given a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i < M, 0 ≤ j < N), could you find some ro...
分类:
其他好文 时间:
2014-10-03 22:39:25
阅读次数:
275
Easy Finding
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 16178
Accepted: 4343
Description
Given a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i < M, 0 ≤ j < N), co...
分类:
其他好文 时间:
2014-10-03 19:55:45
阅读次数:
198