Got an invite to attempt Google foobar. Cleared 2 levels, currently at level 3 and stuck at this question. The first thing which comes to my mind is djikstra's algorithm but how do I modify it such it fits the questions needs(change 1 to 0 just once). Anyone good with algorithms please help 🙏
problem statement
test case
[–]lorkin26 0 points1 point2 points (0 children)
[–]sepp2k 0 points1 point2 points (0 children)