datrs / flat-tree

Map a binary tree to a vector.
Apache License 2.0
53 stars 10 forks source link

`.children()` is off #3

Closed yoshuawuyts closed 6 years ago

yoshuawuyts commented 6 years ago

The following isn't working right now:

flat_tree::children(9) == (8, 10)

Instead it's returning (2, 4)