Write a program to find the node at which the intersection of two singly linked lists begins. Notice If the two linked lists have no intersection at a ...
分类:
其他好文 时间:
2016-07-03 06:57:31
阅读次数:
116
题目描述: Write a function to find the longest common prefix string amongst an array of strings. 解题思路: 这道题很简单,分两步: 1. 找出所有字符串中长度最小的那个字符串的值(可能的结果的最大值,保证查找时 ...
分类:
其他好文 时间:
2016-07-03 06:56:52
阅读次数:
150
Problem: https://leetcode.com/problems/combination-sum-iii/ Find all possible combinations of k numbers that add up to a number n, given that only num ...
分类:
其他好文 时间:
2016-07-03 00:27:31
阅读次数:
122
re.match: match from the beginning of the string re.search: scan through the whole string to find a match dash '-' inside square '[]' means a range. p ...
分类:
编程语言 时间:
2016-07-02 22:44:00
阅读次数:
204
Given an array of integers, find two non-overlapping subarrays which have the largest sum. The number in each subarray should be contiguous. Return th ...
分类:
其他好文 时间:
2016-07-02 17:33:10
阅读次数:
137
Given an array of integers and a number k, find k non-overlapping subarrays which have the largest sum. The number in each subarray should be contiguo ...
分类:
其他好文 时间:
2016-07-02 17:30:12
阅读次数:
162
参考: http://blog.csdn.net/brokge/article/details/8543145 http://blog.csdn.net/mad1989/article/details/25964495 ...
分类:
移动开发 时间:
2016-07-02 16:00:54
阅读次数:
154
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following mat ...
分类:
编程语言 时间:
2016-07-02 15:49:17
阅读次数:
141
1. Use the condition : he/she knows no one. So you can get candidate by filtering out whether a candidate knows somebody. 2. Use the condition : all o ...
分类:
其他好文 时间:
2016-07-02 06:57:25
阅读次数:
134