Given n distinct integers in the range 0, 1, ··· , n^5 − 1, design a worst-case linear-time algorithm to construct an AVL tree on these integers.
I think the idea is to shrink the problem basically meaning change the base from n^5 -1 to N and then inserting it into an AVL tree. But dont know how to do it though!