zezo_mohamed22's blog

By zezo_mohamed22, history, 5 weeks ago, In English

Please give some online judge problems in which prefix sum( also known as cumulative sum) technique is useful. and freuqancy array

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
5 weeks ago, # |
Rev. 2   Vote: I like it +9 Vote: I do not like it
  • »
    »
    5 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    can you tell me how to approach RANGESUM using prefix array. We're adding a new element every time here, we'll have to calculate prefix sum every time.

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it