I find this (https://www.dropbox.com/s/uwxn0fipojvbfex/segtree.pdf?dl=0) tutorial really intuitive for both Segment Tree and BIT and also the transition from Segment Tree to BIT.
Show admin stats
I find this (https://www.dropbox.com/s/uwxn0fipojvbfex/segtree.pdf?dl=0) tutorial really intuitive for both Segment Tree and BIT and also the transition from Segment Tree to BIT.
You can try these also CoalScam, MSTQueries, and DAVIDG-SPOJ (not sure about DAVIDG one! )