Loading tutorials
[low, high] is, as covered in the previous chapter. You don't need any tree knowledge yet. The overlap test is the one predicate that every interval tree operation relies o5 min readmax, the largest high endpoint in its subtree. Here you will see how insertion keeps that invariant true, and what goes wr4 min read(lo, hi), the tree is ordered by lo, and each node's max field holds the largest hi in its subtree. Here you will use that field to find one stored interval that overlaps a query int5 min readmax field, and find_overlap, which returns a single stored interval that overlaps the query. Here you will extend the search so it returns all o5 min readmax field stays correct, and you will see the cases where it goes wrong.4 min readNode class with its max field, insert, find_overlap, and find_all. It also assumes you know Big-O notation and that a binary search tree (BST) of height h costs O(h) per operation. Here we put exact cos5 min read