Please tell me why I got runtime error while solving a problem with DFS even I set recursion limit also but I don't know why I got runtime error. Check my solution please.↵
https://codeforces.net/problemsetcontest/843/submission/843/131610246110↵
https://codeforces.net/problemset/submission/884/131576407↵
Thanks
https://codeforces.net/
https://codeforces.net/problemset/submission/884/131576407↵
Thanks