You are the king of iterators - I was very curious to see if you solved this one with recursion.
@chrisbiscardi16 күн бұрын
I might have if we needed to keep the paths in part 1, but we didn't need them until part 2
@nicwhites16 күн бұрын
You don’t need recursion to solve this. A BFS solves both parts relatively easy
@flwi16 күн бұрын
Nice one! And pretty fast as well. Your iterator-code is quite large. I think you can reduce the font-size slightly to fit more on the screen. That would make it easier to keep track of the context of the lambdas. Even on mobile there is room for more text imo. Edit: nvm - missed the refactoring part.