ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1989. Subpalindromes

TL help me
Posted by Nodirbek Islomov 21 Dec 2014 13:07
idea...!
Re: TL help me
Posted by Alireza Ghorbanzadeh Neghab 6 Mar 2015 14:25
Hint: A string is palindrome if (and only if) its "RIGHT to LEFT" hash and "LEFT to RIGHT" hash are the same.
Also for "Change" queries you need to use some data structure, such as Fenwick Tree or Segment Tree.

Edited by author 06.03.2015 14:26

Edited by author 06.03.2015 14:26