We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Recursion: Davis' Staircase
- Discussions
Recursion: Davis' Staircase
Recursion: Davis' Staircase
Sort by
recency
|
412 Discussions
|
Please Login in order to post a comment
Iterative implementaion with time complexity O(n) and space complexity O(1). Oddly enough, it passes without the % 10000000007.
Python with dynamic programming
Why is n = 0 (base case), the ans is 1 not 0?