I saw that the space complexity when using dynamic programming approach(Pascal's triangle) is O(n^2). What about the space complexity in recursion approach?
2.1m questions
2.1m answers
60 comments
57.0k users