I was solving this problem-https://codeforces.me/problemset/problem/1613/E This is my solution-https://codeforces.me/contest/1613/submission/138713743 Can pls someone tell me what is wrong here.
If anyone could help me as to why the way I use BFS always ends up getting TLE.
I was solving this problem-https://codeforces.me/problemset/problem/1613/E This is my solution-https://codeforces.me/contest/1613/submission/138713743 Can pls someone tell me what is wrong here.