QUESTION Given an index k, return the kth row of the Pascal’s triangle. Note: Could you optimize your algorithm to use only O(k) extra space? This question is provided by LeetCode.
QUESTION Given numRows, generate the first numRows of Pascal’s triangle. This question is provided by LeetCode.