Amazon Coding Interview Question - Recursive Staircase Problem

Amazon Coding Interview Question - Recursive Staircase Problem

CS Dojo via YouTube Direct link

: A dynamic programming / bottom-up approach

20 of 21

20 of 21

: A dynamic programming / bottom-up approach

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Amazon Coding Interview Question - Recursive Staircase Problem

Automatically move to the next video in the Classroom when playback concludes

  1. 1 : Problem description
  2. 2 : A variation of the problem
  3. 3 : Thinking about simple cases
  4. 4 : Finding a pattern
  5. 5 : Relabeling the steps
  6. 6 : Revisiting the pattern with the new labels
  7. 7 : The pattern we’ve found - recap.
  8. 8 : The recursive relationship we’ve found
  9. 9 : What about when N = 0?
  10. 10 : Writing a naive recursive solution
  11. 11 : Why this solution is not efficient
  12. 12 : How to fix it with dynamic programming bottom-up
  13. 13 : The bottom-up solution in code
  14. 14 : How to make it more efficient in terms of space
  15. 15 : Solution to the variation of the problem
  16. 16 : The recursive relationship for this problem the variation
  17. 17 : A naive, INCORRECT recursive solution to this problem
  18. 18 : A naive, CORRECT recursive solution to this problem
  19. 19 : A naive, correct recursive solution in code
  20. 20 : A dynamic programming / bottom-up approach
  21. 21 : How to get daily coding problems like this one go to https://csdojo.io/daily

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.