how to know when to apply Binary indexed Tree??

Had been studying BIT past few days and have got the idea how does it work but unable to figure when it is used like how to know it is being used in http://www.spoj.com/problems/CTRICK/ and http://www.spoj.com/problems/MSE06H/ ???
plz help me guys

4 Likes

thank you for asking good question

Please do not post useless answers like thank you.

1 Like

@kcahdog click on the “edited” link and see spam. i edit it to remove spam, i dont know the REAL answer so i just wrote that

1 Like

why the hell are u doing???
plzzz do comment on my question instead of these craps…

1 Like

please answer any1 :slight_smile: