from the definition, it is easy to know
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
0 1 2 3 4
//i start from 0
row[0] = 1
row[last] = 1
row[i] = prev_row[i] + prev_row[i - 1]
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — leetcode/pascals-triangle at gh-pages · codingwhite/leetcode Expand file tree/ Copy pathpascals-triangle/Directory actionsMore optionsMore optionsDirectory actionsMore optionsMore options/ Copy pathpascals-triangle/Folders and files
| ||||||||||||||||||||||||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||