Rooted Tree to Segment Tree

Can anyone share any blog or editorial link as to how to convert the rooted tree into a segment tree.

https://www.geeksforgeeks.org/euler-tour-subtree-sum-using-segment-tree/#:~:text=Euler%20tour%20tree%20(ETT)%20is,after%20visiting%20all%20its%20children.
except this one.
Thank you.

hello @adarsh_2001

basically u want to convert ur tree into array so that u can apply segement tree on that converted array.

learn tree flattening technique from here->
tree flattening

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.