Kosaraju Algorithm-SPOJ BOTTOM

Strongly Connected Components Problem-SPOJ BOTTOM.
Tried to figure out why NZEC is showing up, but still got no clue.
Output is fine for smaller test cases.
But on SPOJ, it still shows NZEC. Using LinkedList to represt Graph.
Please Help in pointing out the error.

1 Like