Tagged “dfs”

1 post. All tags

2026-06-18
Euler Tour on Trees DSA Flatten a tree into an array using DFS timestamps — subtree queries become range queries, and you can throw a segment tree at them.

← all posts