Snake and Ladder only 1 test case pass

CodeLink-> https://ide.codingblocks.com/s/289461

Hi @imsaurabh I’m looking at your code, I’ll get back to you soon!

@imsaurabh try this code https://ide.codingblocks.com/s/289497 i have made some minor changes

Hi @Ishitagambhir , this updated code also not submit completly.

@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

@Ishitagambhir ohh, got it thanx

1 Like

@imsaurabh dont forget to mark the doubt as resolved!