上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页
摘要: Pascal's Triangle IIGiven an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your alg... 阅读全文
posted @ 2014-11-28 17:00 陆草纯 阅读(512) 评论(0) 推荐(0) 编辑
摘要: Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the followin... 阅读全文
posted @ 2014-11-28 16:47 陆草纯 阅读(5250) 评论(1) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock IIISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the... 阅读全文
posted @ 2014-11-28 11:31 陆草纯 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the be... 阅读全文
posted @ 2014-11-27 18:35 陆草纯 阅读(1737) 评论(0) 推荐(0) 编辑
摘要: Word LadderGiven two words (startandend), and a dictionary, find the length of shortest transformation sequence fromstarttoend, such that:Only one let... 阅读全文
posted @ 2014-11-27 09:51 陆草纯 阅读(2777) 评论(0) 推荐(0) 编辑
摘要: Sum Root to Leaf NumbersGiven a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-l... 阅读全文
posted @ 2014-11-26 09:53 陆草纯 阅读(847) 评论(0) 推荐(0) 编辑
摘要: Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni... 阅读全文
posted @ 2014-11-25 19:31 陆草纯 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Clone GraphClone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are l... 阅读全文
posted @ 2014-11-24 19:24 陆草纯 阅读(3385) 评论(0) 推荐(0) 编辑
摘要: Gas StationThere 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... 阅读全文
posted @ 2014-11-23 21:48 陆草纯 阅读(390) 评论(0) 推荐(0) 编辑
摘要: CandyThere areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following ... 阅读全文
posted @ 2014-11-22 20:09 陆草纯 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页