Hello guys.
I have recently begun learning about graph theory concepts and I want to know how I could improve my solution because my current solution gives TLE.
How can I improve my memory and time requirements?
Here is the link: https://www.codechef.com/viewsolution/25912599
Question: https://www.codechef.com/problems/FIRESC