Algorithms 101: Climbing stairs in JavaScript

added by JavaScript Kicks
9/24/2019 7:19:32 AM

796 Views

Noob v. LeetCode, episode 4, re-learning the Fibonacci sequence Every morning at 11am, I get together with some folks from my Flatiron cohort to work on Algorithms. Today's puzzle from LeetCode: You've got to start somewhere. My first approach went like this: according to the examples, there are two possible combinations for every 2 steps, and 3 possible for every 3 steps.


0 comments