TOPIC

PROBLEM 1907 - URI

maximo silva asked 2 years ago

I don't understand why but I tried to solve it with a BFS and I got 50%WA, then I changed to DFS and got accepted. But the strange was than I, to switch to the DFS, only change a queue of the BFS for a stack. What I mean is that seems to be that the implementation of the BFS was right.

Remember not post solutions. Your post may be reviewed by our moderators.