qstn :http://www.spoj.com/problems/PARADOX/
can anyone please help me giving a detail tutorial. i mean why to use DFS??
I found solution in this link but can’t understand
http://www.quora.com/What-is-the-algorithmic-approach-to-solving-the-problem-Paradox-on-SPOJ
Thank you