Super Mancunian

  • + 1 comment

    In case the problem was more generalized, say that the level we start from will also be given as input (and not LEVEL 1 by default as in this problem), would we get the solution by using All-Pairs-Shortest-Path and our answer would be count of all the edges having weight equal to the maximum weight in the graph?