Hacker News new | ask | show | jobs
by Brashman 4162 days ago
I got to Challenge #5 by just having the elevators go to every floor like in the first example. It'd be nice to have an earlier challenge with only a single elevator force you to have a more complex controller. With 4 elevators going at a time, it's harder for me to "debug" and figure out how to use the API.
1 comments

> I got to Challenge #5 by just having the elevators go to every floor like in the first example.

Strange, that strategy doesn't allow me to get past challenge 2 (just going to every floor one after the other).

Guess, I got lucky, haha. I should probably go back to challenge 2 and learn how to program these then.
On six it takes you back to 4 floors with 2 elevators and the challenge is 40 people in under 60 elevator moves.

The first 5 are easy to "brute force" but six is making me think a bit more.

I cheated with #6. My elevators wait on the ground floor until they fill up, then they deliver the patrons to their floors. Everyone not on the ground floor... is stuck forever.