上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页
摘要: ``` / Source : https://oj.leetcode.com/problems/binary tree maximum path sum/ Given a binary tree, find the maximum path sum. The path may start and e 阅读全文
posted @ 2017-11-17 00:03 lacker 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ``` /** * Source : https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/ * * * Say you have an array for which the ith element is the price of a given stock on day i. * * Design ... 阅读全文
posted @ 2017-11-15 08:51 lacker 阅读(309) 评论(0) 推荐(0) 编辑
摘要: ``` /** * Source : https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ * * * * Say you have an array for which the ith element is the price of a given stock on day i. * * Desig... 阅读全文
posted @ 2017-11-15 08:50 lacker 阅读(164) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/triangle/ Given a triangle, find the minimum path sum from top to bottom. Each step you may move to ad 阅读全文
posted @ 2017-11-15 08:49 lacker 阅读(99) 评论(0) 推荐(0) 编辑
摘要: ``` /** * Source : https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock/ * * * Say you have an array for which the ith element is the price of a given stock on day i. * * If you were... 阅读全文
posted @ 2017-11-15 08:49 lacker 阅读(113) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; /** * * Source : https://oj.leetcode.com/problems/pascals-triangle-ii/ * * * Given an index k, return the kth row of the Pascal's triangle. * * For example, given ... 阅读全文
posted @ 2017-11-14 08:26 lacker 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; / Source : https://oj.leetcode.com/problems/pascals triangle/ Given nu 阅读全文
posted @ 2017-11-14 08:25 lacker 阅读(116) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/populating next right pointers in each node/ Source : https://oj.leetcode.com/problems/populating next 阅读全文
posted @ 2017-11-14 08:24 lacker 阅读(201) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/distinct subsequences/ Given a string S and a string T, count the number of d 阅读全文
posted @ 2017-11-13 08:18 lacker 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/flatten-binary-tree-to-linked-list/ * * * Given a binary tree, flat... 阅读全文
posted @ 2017-11-13 08:17 lacker 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页