- 博客(5)
- 资源 (7)
- 收藏
- 关注
原创 LeetCode Search for a Range
题目要求:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the target is
2014-05-14 03:43:41 459
原创 LeetCode 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 us
2014-05-13 23:02:49 512
原创 LeetCode Best Time to Buy and Sell Stock III
题目要求:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete at most two transactions.Note
2014-05-13 04:43:58 693
原创 LeetCode Multiply Strings 大数相乘
题目要求:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.daima
2014-05-13 02:14:37 840
原创 LeetCode(Longest Consecutive Sequence ) 最长连续序列
题目要求:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest consecutive elements sequence
2014-05-12 23:40:58 649
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人