Solution: Staircase Problem
This review contains a detailed analysis of the different ways to solve the staircase problem.
Solution #1: Brute force
Let’s look at the brute force solution first:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.