Persistent Segment Trees and Heavy Light Decomposition

Can somebody share array-implementation of persistent segment tree(without using pointers) and 2-3(easy) related problems ?

@harshraj22

Also, can somebody share an implementation of HLD which does not invovle pointers?(Pointers are slow and explode the memory)

Thanks :slight_smile:

3 Likes

:astonished::astonished: I haven’t done many, but here is one implementation of persistent segment tree (array implementation). Codeforces for problems :yum::yum:

4 Likes
Summary

LMGTFY - Let Me Google That For You
LMGTFY - Let Me Google That For You

8 Likes