Could someone please help by letting me know why am I getting a WA on ANARC08F - Einbahnstrasse?
Problem link - http://www.spoj.com/problems/ANARC08F/
EDIT :
1.I came to know that the list of cities from where the broken cars need to be towed could be duplicate, so I had to make some changes to account for that.
2. There could also be multiple edges.
Here is my updated code :
Code removed after AC.