Oct 25, 2024Oct 25, 2024 · 1 min read · 17 views118. Pascal's Triangle[A1] - Brute Force Time: O(n^2) Space: O(n^2) class Solution: def generate(self, numRows: int) -> List[List[int]]: # Initialize the triangle with the first row pascal_triangle = [] for i in range(numRows): # S...1 min read · 17 views