Max and Palindromes
CodeChefOpen on judge ↗
Max has recently studied about palindromes and yesterday he came across a simple problem in which he was given a string $S$ and he had to report the total number of unique palindromes of length 3 which can be formed by using the characters of the string. Note – The string contains only lowercase characters. ###Input: - A single string S. ###Output: Total number of unique palindromes o
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start