Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterating through SCC #8

Closed
Kostekgol opened this issue Sep 21, 2022 · 1 comment
Closed

Iterating through SCC #8

Kostekgol opened this issue Sep 21, 2022 · 1 comment

Comments

@Kostekgol
Copy link

reverse(ord.begin(), ord.end());

From my understanding, order of SCC was computed in preorder manner, so why do we reverse it before assigning answers?

@Kostekgol
Copy link
Author

I do get it now, you need to go backwards here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants