CodeLink-> https://ide.codingblocks.com/s/289461
Snake and Ladder only 1 test case pass
@imsaurabh i just noticed, its a very silly mistake. The edges are directed, you cant move in both directions. For eg you can go to 2 from 1 but you cant come to 1 from 2 na.
So change your addEdge function it should run fine