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

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

Does anyone face problem like me? I found that when I tried to write two pointer, I am very confused and I struggle with my code for very long time. Sometimes, I easily bugged. How can I improve this?

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

»
16 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

You need to understand monotonocity. Why are we skipping items? Because they are going to be worse than what we are going to get. Easy peasy. When we have rotten apples, you throw them away.