摘要:
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.参考:http://www.cnblogs.com/AnnieKim/ar... 阅读全文
posted @ 2014-11-25 22:39
Jessica程序猿
阅读(227)
评论(0)
推荐(0)
摘要:
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[... 阅读全文
posted @ 2014-11-25 21:47
Jessica程序猿
阅读(220)
评论(0)
推荐(0)
摘要:
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni... 阅读全文
posted @ 2014-11-25 20:01
Jessica程序猿
阅读(199)
评论(0)
推荐(0)
摘要:
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo... 阅读全文
posted @ 2014-11-25 17:23
Jessica程序猿
阅读(134)
评论(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-11-25 13:59
Jessica程序猿
阅读(154)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文
posted @ 2014-11-25 13:02
Jessica程序猿
阅读(147)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... 阅读全文
posted @ 2014-11-25 11:31
Jessica程序猿
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号