摘要:
题目: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 longe... 阅读全文
posted @ 2014-05-14 11:25
ThreeMonkey
阅读(159)
评论(0)
推荐(0)
摘要:
题目:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which ... 阅读全文
posted @ 2014-05-14 11:16
ThreeMonkey
阅读(106)
评论(0)
推荐(0)
摘要:
题目:Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surrounded reg... 阅读全文
posted @ 2014-05-14 11:07
ThreeMonkey
阅读(147)
评论(0)
推荐(0)
摘要:
题目:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, ... 阅读全文
posted @ 2014-05-14 10:59
ThreeMonkey
阅读(128)
评论(0)
推荐(0)
摘要:
题目:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ... 阅读全文
posted @ 2014-05-14 10:54
ThreeMonkey
阅读(140)
评论(0)
推荐(0)
摘要:
题目:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled u... 阅读全文
posted @ 2014-05-14 10:45
ThreeMonkey
阅读(190)
评论(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 costsco... 阅读全文
posted @ 2014-05-14 10:35
ThreeMonkey
阅读(115)
评论(0)
推荐(0)
摘要:
题目:There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following re... 阅读全文
posted @ 2014-05-14 10:31
ThreeMonkey
阅读(240)
评论(0)
推荐(0)
摘要:
题目: Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime comple... 阅读全文
posted @ 2014-05-14 10:25
ThreeMonkey
阅读(101)
评论(0)
推荐(0)
摘要:
题目: Given an array of integers, every element appearsthreetimes except for one. Find that single one. Note: Your algorithm should have a linear run... 阅读全文
posted @ 2014-05-14 10:21
ThreeMonkey
阅读(146)
评论(0)
推荐(0)

浙公网安备 33010602011771号