摘要:
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 rep... 阅读全文
posted @ 2015-02-09 13:06
Vae永Silence
阅读(197)
评论(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 region... 阅读全文
posted @ 2015-02-09 13:04
Vae永Silence
阅读(165)
评论(0)
推荐(0)
摘要:
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv... 阅读全文
posted @ 2015-02-09 13:03
Vae永Silence
阅读(160)
评论(0)
推荐(0)
摘要:
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs... 阅读全文
posted @ 2015-02-09 13:01
Vae永Silence
阅读(136)
评论(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 uniq... 阅读全文
posted @ 2015-02-09 13:00
Vae永Silence
阅读(222)
评论(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 @ 2015-02-09 12:58
Vae永Silence
阅读(155)
评论(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 requi... 阅读全文
posted @ 2015-02-09 12:57
Vae永Silence
阅读(128)
评论(0)
推荐(0)
摘要:
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity... 阅读全文
posted @ 2015-02-09 12:55
Vae永Silence
阅读(135)
评论(0)
推荐(0)
摘要:
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp... 阅读全文
posted @ 2015-02-09 12:54
Vae永Silence
阅读(156)
评论(0)
推荐(0)
摘要:
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ... 阅读全文
posted @ 2015-02-09 12:52
Vae永Silence
阅读(134)
评论(0)
推荐(0)