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

Автор MotaSanyal, история, 4 года назад, По-английски

Hello Everyone! I am stuck at this problem. I would highly appreciate if somebody explains me how the approach to this problem.

P.S. : This problem doesn't have an editorial yet.

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

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Greedy: At any instant, choose the pen which can write current character and takes you furthest ahead in the string S without switching pen.