EternalThread's blog

By EternalThread, history, 5 weeks ago, In English

Anyone who has knowledge of condensation graphs or strongly connected components can help.
Problem Link:- Coin Collector

I have two codes one was not accepted and one was accepted just by adding a reverse(all(root_nodes)(which basically reverses the vector) in line number 80 and the code was accepted. Can anyone please tell me the reason for this??

WA Code
Accepted Code

Thanks in advance!!

  • Vote: I like it
  • -1
  • Vote: I do not like it