⚡ Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 30s17 days 22 hours 19 minutes 30 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 30s17 days 22 hours 19 minutes 30 seconds.

Sign in to watch this lesson
Algorithms - Trees and Range Queries · 4:55
A disjoint set union stores groups as a forest of parent pointers, where each root names its set. We build it from make_set, find_set and union_sets, watch path compression flatten a tall tree and union by size keep every tree at most log2 n tall, then measure the plain version against both tricks and see why alpha(n) is constant in practice.