119. Pascal's Triangle II

time: O(n^2)

space: O(n)

same as 118, just return last row

Last updated

Was this helpful?