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

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

Problem link

Hi there. Can anyone share how to solve this problem? I think it can be solved using Manacher algo but i just can't figure out how to do this optimally. If anyone has solved this using manacher or any other way please do share your idea here. I have tried for a lot of time but failed.

Thanks in advance.

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

»
6 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Kindly check out my comment at CSES-String Section Blog