class Solution:
    # @return a list of lists of integers
    def generate(self, numRows):
        result = []
        if numRows==0:
            return result
        result.append([1])
        for i in range(2,numRows+1):
            lst = [1]
            for j in range(1,i-1):
                lst.append(result[-1][j-1]+result[-1][j])
            lst.append(1)
            result.append(lst)
        return result
b7c5bdacae6151bc34930575b9103d5131b8052d
<mask token>

class Solution:
    <mask token>

class Solution:

    def generate(self, numRows):
        result = []
        if numRows == 0:
            return result
        result.append([1])
        for i in range(2, numRows + 1):
            lst = [1]
            for j in range(1, i - 1):
                lst.append(result[-1][j - 1] + result[-1][j])
            lst.append(1)
            result.append(lst)
        return result

class Solution:
    # @return a list of lists of integers
    def generate(self, numRows):
        result = []
        if numRows==0:
            return result
        result.append([1])
        for i in range(2,numRows+1):
            lst = [1]
            for j in range(1,i-1):
                lst.append(result[-1][j-1]+result[-1][j])
            lst.append(1)
            result.append(lst)
        return result