Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 444 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 444 Bytes

The-factor-of-palindromes

-Input Format; A single line of input data contains a single line — a non-empty sequence of lowercase letters of the English alphabet. The length of the string is at least 2 and does not exceed 200,000 characters.

-Output Format; The minimum length and lexicographically minimum substring of the input string that consists of at least two characters and is a palindrome. If there is no such substring, then '-1'.