LASTSHOT - THE LAST SHOT

spoj

question->https://www.spoj.com/problems/LASTSHOT/

my code->https://ideone.com/hTXu3B

i am getting wrong answer on spoj...

avinashexpc
Avinash Kumar
avinashexpc

Please Log in to answer

Note: Your answer should not be too short. Please wait a few seconds for the editor to load



Please make sure the answer is not too short

1 Answer

Samrat
Samrat 01:34, Oct 28
Samrat De

The only mistake is that, you are not reseting your 'ar' array to {false} after each dfs traversal.




Please make sure the answer is not too short
2 Upvotes
Comments
No Comments yet