javacoder1's blog

By javacoder1, history, 11 years ago, In English

I am having problem understanding how we are utilising Binary Indexed tree to solve the problem.The DFS part is clear as well as the notion of levels. But i am unable to understand how BIT is used. http://mirror.codeforces.com/contest/383/problem/C link.

  • Vote: I like it
  • -5
  • Vote: I do not like it

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
  • »
    »
    11 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Sir i had already read the editorial and then i made the comment.Please provide any other valuable resources.

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it