Devin's Blog

Home

❯

Coding

❯

Pascals Triangle II

Pascals Triangle II

Mar 31, 20231 min read

  • idea

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/


Graph View

Created with Quartz v4.5.0 © 2026

  • GitHub
  • Discord Community