Get the latest tech news

Binary Lifting


lifting (AKA binary jumping) is a very cool algorithm for finding the lowest common ancestor (LCA) of two nodes in a tree. I like it because it changed the way I look at other algorithms, for instance binary search and sparse tables, and visualizing this algorithm gave me a much deeper understanding of it.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Binary Lifting

Binary Lifting