摘要:
题目: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 ... 阅读全文
posted @ 2015-07-03 15:58
Hygeia
阅读(137)
评论(0)
推荐(0)
摘要:
题目:Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onl... 阅读全文
posted @ 2015-07-03 14:18
Hygeia
阅读(120)
评论(0)
推荐(0)
摘要:
题目:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4... 阅读全文
posted @ 2015-07-03 11:19
Hygeia
阅读(157)
评论(0)
推荐(0)

浙公网安备 33010602011771号