Leetcode之Pascal's Triangle II 問題

問題描述: 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? 示例: For example, given k = 3, Return [1,3,3,1]. 問題來源:Pascal's
相關文章
相關標籤/搜索