Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

I__Love__TANIA's blog

By I__Love__TANIA, history, 8 years ago, In English

I need help to solve SPOJ — BUILDING

I can solve it in O( total h_i * 2 * log(m) ). But it is not enough to get Accepted.

How can i optimize complexity?

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