Editorial for LCC '21 Contest 1 S2 - Tracy's Palindromes

Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.

Submitting an official solution before solving the problem yourself is a bannable offence.

Author: nicoella

Each consecutive section of the same letter can be reduced to a number representing the number of characters in the section and stored in a list. All combinations of consecutive numbers can then be tested for problem requirements. Numbers on the edge of the list of tested numbers can be larger than one more than the number immediately inwards.


There are no comments at the moment.