One Solution Giving AC and other TLE : SPOJ : NAKANJ — Minimum Knight moves !!!

Revision en6, by shubhamphpefy, 2024-05-16 21:01:45

I submitted below codes for this problem.I got AC for one and TLE for other. I am unable to find how its happening. Please Help.

AC Submission
TLE Submission
Tags graph, bfs, spoj, codeforces

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en6 English shubhamphpefy 2024-05-16 21:01:45 72
en5 English shubhamphpefy 2024-05-16 20:59:33 11 Tiny change: 's for one among them I got AC ' -> 's for one I got AC '
en4 English shubhamphpefy 2024-05-16 20:58:38 24
en3 English shubhamphpefy 2024-05-16 20:57:59 6
en2 English shubhamphpefy 2024-05-16 20:56:59 22
en1 English shubhamphpefy 2024-05-16 20:54:59 3302 Initial revision (published)