摘要:
LeetCode:Pascal's TriangleGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1... 阅读全文
摘要:
题目链接Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the... 阅读全文
摘要:
LeetCode:Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted... 阅读全文
摘要:
题目如下: 二叉树的最大路径和(题目链接)Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below bin... 阅读全文