2014年5月6日

摘要: Problem Link:http://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/We solve this problem using Greedy Algorithm, which only scan the pric... 阅读全文

posted @ 2014-05-06 22:58 卢泽尔 阅读(215) 评论(0) 推荐(0)

摘要: Problem Link:http://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock/We solve this problem using DP algorithm, which only scans the prices lis... 阅读全文

posted @ 2014-05-06 22:46 卢泽尔 阅读(274) 评论(0) 推荐(0)

摘要: Problem Link:http://oj.leetcode.com/problems/binary-tree-maximum-path-sum/For any path P in a binary tree, there must exists a node N in P such that N... 阅读全文

posted @ 2014-05-06 04:13 卢泽尔 阅读(336) 评论(0) 推荐(0)

摘要: Problem Link:http://oj.leetcode.com/problems/word-ladder-ii/Basically, this problem is same to Word Ladder I, which uses a double-direction BFS. Howev... 阅读全文

posted @ 2014-05-06 01:58 卢泽尔 阅读(520) 评论(0) 推荐(0)