Help with SPOJ_AKBAR

Revision en1, by ajkdrag, 2019-06-25 11:11:58

I coded up the solution in Java, and for some reason, I am getting TLE. I feel the solution is correct. Any insights will be appreciated. Code : https://github.com/aizenkhan/Misc.-Solutions/blob/master/BFS/SPOJ_AKBAR.java

Tags #spoj, bfs, #graphs, #java

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ajkdrag 2019-06-25 11:11:58 243 Initial revision (published)