educative.io

Educative

https://www.educative.io/courses/algorithms-coding-interviews-java/mEGzKkrBAKG#Solution-#2:-Memoization

Hi, can someone please explain why the solutions #1, #2 and #4 are returning 1 when there are zero(0) steps in the staircase?


Type your question above this line.

Course: https://www.educative.io/collection/10370001/5347133077061632
Lesson: https://www.educative.io/collection/page/10370001/5347133077061632/5122140560949248