Order of elements in prefix array and ancestor arrays

In my arrays, the order of elements is such that they start from child nodes (highest level) to the root node (lowest level). I want to reverse the order. And also provide any suggestions in this approach.

@mohammadabdullahjawwad
“I want to reverse the order.”
Which order are you talking about buddy ?

I had got it! Thanks a lot btw

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.