Skip to content
RED SAGSkills
hard20 pts · first answer countsgraphslcatrees

Binary lifting memory and query cost

Binary lifting stores up[k][v], the 2^k-th ancestor of v. For n nodes, what are its memory use and query time for the k-th ancestor?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions