
LeetCode
zhengfushijie
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode题解:Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using extra原创 2014-11-06 14:50:45 · 300 阅读 · 0 评论 -
LeetCode题解:Maximum Subarray
Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4],the contiguous suba转载 2014-11-06 16:24:59 · 259 阅读 · 0 评论 -
LeetCode题解:Path Sum I and II
Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Given the below binary tr转载 2014-11-06 16:56:50 · 282 阅读 · 0 评论 -
LeetCode题解:Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest pr原创 2014-11-06 14:53:46 · 386 阅读 · 0 评论 -
LeetCode题解:Unique Binary Search Trees
Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1转载 2014-11-06 16:39:23 · 286 阅读 · 0 评论