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
  • Vote: I like it
  • +1
  • Vote: I do not like it

»
88 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

very insightful!

»
84 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Elegant observation!