Shortest distance problem

Please check my code, it passed sample test case on my machine
Link to the code-- https://ide.codingblocks.com/s/382693

Hey @shivanshu12800
you forgot

cout<<endl;

after each testcase

Oh thanks man!!..silly mistake my bad!

1 Like