Hello,
I’m new here and i started to code the medium training puzzles and when i got to this one i was like… Omg is this medium? Srsly? I thought that there could be multiple elevators in one floor and since there is limited amount of moves i thought about some solutions like dp, greedy, bfs, etc… And i ended up coding bfs which wasnt nice cuz after that, I saw other peoples codes and they literally had only 2 ifs in them…
I think a clarification like this will be really nice for newbs like me
Thanks for your patience,
sane’.thePlayer
1 Like