Can anyone help me on learning Segment tree by giving some tutorials and nice implementation in c++ ? I have seen the topcoder tutorial , but have not understand it well :(
if you give me an implementation in c++ with some comment . it will be great.. :) Thanx in Advance.. :)
It will give you good understanding and you'll get experience rewriting it without classes