4 ms·
elevator.goToFloor(1); elevator.goToFloor(2); elevator.goToFloor(0);
by SMAAART 5y ago
elevator.goToFloor(1);
elevator.goToFloor(2);
elevator.goToFloor(0);
- Jtsummers 5y agoThat (or a slight variation) works for the first couple of levels. Then it gets harder.
- SamBam 5y agoI 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.