leetcode 118 Pascal's Triangle(杨辉三角) python3 两种解法(清晰的分类讨论 / 优雅的拼接反向叠加)

全部Leetcode题目不按期汇总在 Github, 欢迎你们批评指正,讨论交流。 class Solution: def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """ # method one: 用了if
相关文章
相关标签/搜索