Page 1 of 1

13066 - Ant-Man's Sugar Journey

Posted: Mon Apr 03, 2017 2:12 pm
by Zyaad Jaunnoo
Hello there,

What algorithms did you use to solve this problem?

My idea was to build a DAG out of strongly connected components and then traverse the graph from the entry till the exit node while keeping track of the vertices being visited. But WA..

Any guidance on this problem?