piggy123's blog

By piggy123, history, 13 months ago, In English

We have an array of integers $$$a_{1...n}$$$, and we have $$$q$$$ updates where we change one of the elements of it. After each update, we need to output the bitwise-OR sum of the entire array. Could this be done(offline) in linear time?

Consider the bitwise operations on integers to be $$$O(1)$$$.

Full text and comments »

  • Vote: I like it
  • +30
  • Vote: I do not like it