Why my 1 test case is failing
@Ayush-Singh-670013560505589 remove !q.empty() to q.empty()… at any point if queue becomes empty and distances is greater then we can’t reach to town… and return false;
@Ayush-Singh-670013560505589 remove !q.empty() to q.empty()… at any point if queue becomes empty and distances is greater then we can’t reach to town… and return false;