Info
There is a space efficient dp solution to this problem that does not require placing every single row into the output, since you only need the last row!
I solved this one using the previous problem but just return the last row.
References
https://leetcode.com/problems/pascals-triangle-ii/description/