Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

elevator.goToFloor(1); elevator.goToFloor(2); elevator.goToFloor(0);


That (or a slight variation) works for the first couple of levels. Then it gets harder.


I was happy that my solution for level 4 was also accepted for level 5 and 6. Only a small tweak was needed for level 7, as now moves were counted instead of time.

The next level required no passenger to wait longer that a certain amount of time, and I would have had to trash half my program, so I quit for now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: