Can somebody please explain how dynamic binary index trees work and give me an implementation, I would appreciate your help!
I meet some dificult in coding it !
Sorry about my pour English !
Thanks in advance! :)
Can somebody please explain how dynamic binary index trees work and give me an implementation, I would appreciate your help!
I meet some dificult in coding it !
Sorry about my pour English !
Thanks in advance! :)
http://stackoverflow.com/questions/21995930/dynamic-i-e-variable-size-fenwick-tree
do you means that? or what? this is http://codeforces.me/contest/101/submission/18138434 solution of this problem with dynamic segment tree(for example).