摘要:
Problem: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,1]]Analysis:There two ways to solve the problem, either compute each row element separately or use inductive method.The latter cost much more le... 阅读全文
posted @ 2013-05-24 05:39
freeneng
阅读(203)
评论(0)
推荐(0)
浙公网安备 33010602011771号