Centered interval tree

i have read the article but i cant apply(i mean i can’tcode)

so please help me giving the code in c with comment code is in c++ but quite similar to c.

No both are different it was terniary tree I found this by searching for centered interval tree its in objective c though