码迷,mamicode.com
首页 >  
搜索关键字:assume    ( 1858个结果
Construct Binary Tree from Preorder and Inorder Traversal leetcode java
题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解: 1 ...
分类:编程语言   时间:2014-08-01 06:56:41    阅读次数:228
[leetcode]Longest Palindromic Substring
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:其他好文   时间:2014-08-01 04:47:25    阅读次数:243
[leetcode]Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder TraversalGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume...
分类:其他好文   时间:2014-07-31 23:26:10    阅读次数:318
[leetcode]Validate Binary Search Tree
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtre...
分类:其他好文   时间:2014-07-31 23:11:40    阅读次数:225
[LeetCode 题解]: Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:其他好文   时间:2014-07-31 16:08:26    阅读次数:283
Merge Sorted Array leetcode java(回顾MergeTwoArray和MergeTwoLinkedList)
题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or e....
分类:编程语言   时间:2014-07-28 14:47:23    阅读次数:1108
Insert Interval leetcode java
题目:Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were ini....
分类:编程语言   时间:2014-07-28 11:35:10    阅读次数:293
poj1328Radar Installation(贪心—区间选点)
题目链接: 啊哈哈,点我点我 题目: Radar Installation Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 52037   Accepted: 11682 Description Assume the coasting is a...
分类:其他好文   时间:2014-07-27 23:46:29    阅读次数:345
[leetcode]Insert Interval
Insert IntervalGiven a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals...
分类:其他好文   时间:2014-07-26 01:35:07    阅读次数:246
【leetcode刷题笔记】Insert Interval
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:其他好文   时间:2014-07-26 00:37:46    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!