AlgoMaster Logo

Shortest Path Visiting All Nodes

graph=[[1,2,3],[0],[0],[0]]
0 / 320
algomaster.io
Step:Walk every route through all 4 nodes and keep the shortest