摘要:
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 ord... 阅读全文
posted @ 2014-07-04 14:03
Hicandyman
阅读(210)
评论(0)
推荐(0)
摘要:
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru... 阅读全文
posted @ 2014-07-04 14:01
Hicandyman
阅读(109)
评论(0)
推荐(0)
摘要:
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa... 阅读全文
posted @ 2014-07-04 12:28
Hicandyman
阅读(149)
评论(0)
推荐(0)
摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2014-07-04 09:58
Hicandyman
阅读(107)
评论(0)
推荐(0)
摘要:
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a... 阅读全文
posted @ 2014-07-04 03:45
Hicandyman
阅读(147)
评论(0)
推荐(0)
摘要:
Leetcode 150题吐血大整理byBOposted onMAY 11, 2014断断续续刷了三个月的leetcode,近日终于大功告成。这里把所有题目按难易程度分了下类,并作了简要说明。难度等级纯粹是凭主观感觉,不必太较真。所有的题目都只提供一个思路,现在回头看好几道都讲的不是很清楚,将就看吧... 阅读全文
posted @ 2014-07-04 02:12
Hicandyman
阅读(121)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文
posted @ 2014-07-04 02:07
Hicandyman
阅读(136)
评论(0)
推荐(0)
浙公网安备 33010602011771号