码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
Reverse Nodes in k-Group [逆转K-Group链表]
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:其他好文   时间:2014-12-25 11:25:56    阅读次数:146
LintCode-Maximum Subarray III
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 contiguou...
分类:其他好文   时间:2014-12-25 09:55:31    阅读次数:235
LintCode-Maximum Subarray II
Given an array of integers, find two non-overlapping subarrays which have the largest sum.The number in each subarray should be contiguous.Return the ...
分类:其他好文   时间:2014-12-25 08:44:08    阅读次数:232
LeetCode--Merge Two Sorted Lists
题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 解决方案: /** * Definition for singly-linked list. ...
分类:其他好文   时间:2014-12-24 21:32:44    阅读次数:236
LeetCode Problem 2:Two Sum
描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:其他好文   时间:2014-12-24 20:03:47    阅读次数:129
[LeetCode]114.Flatten Binary Tree to Linked List
【题目】 Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look like:...
分类:其他好文   时间:2014-12-24 18:14:47    阅读次数:119
StackOverFlow 最有影响力的IT书箱
参考:http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-readCode Complete (2nd edition) by Steve M...
分类:其他好文   时间:2014-12-24 13:17:55    阅读次数:239
Interview-Largest independent set in binary tree.
BT(binary tree), want to find the LIS(largest independent set) of the BT. LIS: if the current node is in the set, then its children should not be in t...
分类:其他好文   时间:2014-12-24 08:40:08    阅读次数:120
LeetCode Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Show Tags...
分类:其他好文   时间:2014-12-24 01:16:15    阅读次数:148
LeetCode Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2014-12-23 23:49:51    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!