Open sjorsvanheuveln opened 3 years ago
This: num_items = math.ceil(self.total / 2**(self.max_depth - depth))
num_items = math.ceil(self.total / 2**(self.max_depth - depth))
Can be simplified to this: num_items = 2**depth
num_items = 2**depth
For depth 0 to and including max_depth
This:
num_items = math.ceil(self.total / 2**(self.max_depth - depth))
Can be simplified to this:
num_items = 2**depth
For depth 0 to and including max_depth