I have an ordered array of length n containing consecutive integer elements 1 to n. After constructing the red-black tree for this array, I can traverse this tree in level order using a standard breadth first search approach.
My question is, given any n <= 100000000 (corresponding to an ordered array with consecutive integer elements from 1 to n), is it possible to bypass the construction of the tree and directly return the level order?