-<p id="appendix-B.1-4">Each level in the tree corresponds to a bit position and can be correspondingly numbered, with 0 indicating the least-significant bit and the leaf level, and so on. In this numbering, a node's level can be determined as follows: if the node is a root of subtree <code>[start, end)</code>, let <code>s</code> be the smallest power of two that is greater than or equal to <code>end - start</code>. The node's level is <code>log2(s)</code>.<a href="#appendix-B.1-4" class="pilcrow">¶</a></p>
0 commit comments