码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
[leetcode]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: ...
分类:其他好文   时间:2015-01-14 22:54:05    阅读次数:158
【LeetCode】算法修炼 --- Two Sum
Question: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 t...
分类:编程语言   时间:2015-01-14 19:44:13    阅读次数:323
leetcode 21.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.为了方便表头处理,...
分类:其他好文   时间:2015-01-14 17:54:36    阅读次数:242
[C++]LeetCode: 92 Unique Binary Search Trees II
题目: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 ...
分类:编程语言   时间:2015-01-14 16:58:27    阅读次数:222
Tip 18 – How to decide on a lifetime for your ObjectContext
Alex D James 7 May 2009 3:44 PM One of the most common questions we get is how long should an ObjectContext should live. Options often cited include o...
分类:其他好文   时间:2015-01-14 14:08:49    阅读次数:232
LeetCode Regular Expression Matching
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input st...
分类:其他好文   时间:2015-01-14 12:50:05    阅读次数:162
leetcode----------Merge Two Sorted Lists
题目Merge Two Sorted Lists通过率33.2%难度EasyMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the ...
分类:其他好文   时间:2015-01-14 12:30:19    阅读次数:159
LeetCode--Unique Binary Search Trees II
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3 ...
分类:其他好文   时间:2015-01-14 09:52:27    阅读次数:150
【leetcode】Median of Two Sorted Arrays(hard)★!!
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 ...
分类:其他好文   时间:2015-01-14 00:42:38    阅读次数:278
[LeetCode]41.First Missing Positive
【题目】 Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and use...
分类:其他好文   时间:2015-01-13 21:35:19    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!