Hello guys , i just started doing segment tree and BIT, could someone plz tell questions on these topics on codeforces in increasing order of difficulty and what is the difference between the two (in terms of their operations), when should i use a segment tree and when should i use a BIT i.e. how should i choose between the two on theBIT basis of various questions ?
Also it would be extra helpful if someone could provide the best online resources link to learn both. Thanks.
:)
I suggest you to follow these links in order :
BIT -Topcoder tutorials
Recommended more BIT
Segment tree / RMQ Topcoder Tutorials
Segment Tree problems.
this is by far the best tutorial I've found (and most efficient implementation!) on segment trees. And these are some questions you could solve
Thanks a lot guys, I m really grateful.