三角
文章平均质量分 65
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 118. Pascal's Triangle(帕斯卡三角)
原题网址:https://leetcode.com/problems/pascals-triangle/ Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1],原创 2016-05-24 00:19:50 · 699 阅读 · 0 评论 -
LeetCode 119. Pascal's Triangle II(帕斯卡三角)
原题网址:https://leetcode.com/problems/pascals-triangle-ii/ Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize原创 2016-05-24 00:19:56 · 879 阅读 · 0 评论 -
LeetCode 120. Triangle(三角形)
原题网址:https://leetcode.com/problems/triangle/ 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原创 2016-05-24 00:20:03 · 813 阅读 · 0 评论