Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to check ancestor without LCA
- if v is ancestor of u
- then in[v] <= in[u] and out[v] > out[u]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement