sofyanalam's blog

By sofyanalam, history, 95 minutes ago, In English

Accepted Code375452836

Recently I solved this problem using a different observation from the official editorial, so I thought I'd share it.

Observation 1: Computing Total Movement
Observation 2: Which Height Should We Decrease?
Computing greater(i) Efficiently
Complexity Analysis
Final Notes

Full text and comments »

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