Java Playground - Calculating the shortest path : Online Interpreter, Compiler & Editor | Sololearn