I’m not familiar with the algorithm. It seems to expect a sorted array to build a flattened, balanced binary tree?

It might be good to give more descriptive variable names for the uninitiated. But I can look up the algorithm.

Comments