Pascal's Triangle II
Question
Given an index k, return the kth row of the Pascal's triangle.
Example:
For example, given k = 3, Return [1,3,3,1].
Answer
solution:this is done by myself.
Knowledge:
基本思路就是利用上一次的函数,从而输出最后一行。
Last updated
Was this helpful?