Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Double-ended eertree

Правка en1, от adamant, 2024-06-09 17:29:46

Hi everyone!

Quite recently, a problem named Palindromes in Deque was added to the Library Checker that asks you to execute the following:

  1. Add a character $$$c$$$ to the beginning or the end of a string $$$s$$$;
  2. Remove a character from the beginning or the end of $$$s$$$.

In-between the queries you also need to maintain the number of distinct palindromes, and the size of the largest prefix- and suffix-palindromes of the current string.

Теги eertree, palindromes, palindromic tree

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский adamant 2024-06-10 17:30:40 4768 Tiny change: 'ast$, and maximal p' -> 'ast$, and remove maximal p' (published)
en2 Английский adamant 2024-06-10 16:25:26 5300 Tiny change: ' on deque? Essentiall' -> ' on deque?\n\n### Palindromes on deque\n\nEssentiall'
en1 Английский adamant 2024-06-09 17:29:46 519 Initial revision (saved to drafts)