• + 1 comment

    you can refer top coder or either gog to understand the concept of segment tree. ;)