I__Love__TANIA's blog

By I__Love__TANIA, history, 6 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