Help needed for CSES problem Labyrinth, Getting TLE

Revision en1, by normal_cf_user, 2024-12-30 14:24:58

In the problem CSES-Labyrinth I have written a simple BFS solution but still getting TLE , The solution is O(N*M) solution means it should work fine , but don't know why I'm getting TLE. Any Help is appreciated.

My Submission : Here

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English normal_cf_user 2024-12-30 14:24:58 383 Initial revision (published)