Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ch02-01-flat-tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ expose the index so it can be stored or used for other computations.

## Optimizations
### Calculate Depth
The depth of a node can be calculated by counting the number of tailing zeros in
The depth of a node can be calculated by counting the number of tailing ones in
a number. Languages such as Rust expose `<num>.trailing_zeros()` which counts
the amount of zeros at the end of a number (`cttz` intrinsic). By combining a
bitwise negation (`!` or `NOT` operation) with the `.trailing_zeros()` method,
Expand Down