Блог пользователя learningcurve_

Автор learningcurve_, история, 16 месяцев назад, По-английски

I tried to think of ways to solve this problem, after not being able to think of a solution which I could reason about, I read the editorial and understood the binary search solution, but I don't understand why the greedy solution works.

Could someone help reason about the greedy solution?

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится