Akka Password
CodeChefOpen on judge ↗
Ankit, Student of CU, has been gifted a jewel, which he wants to keep in a safe. He asks his friend to suggest him a password for the safe, which should be a string containing lower-case English letters only. Ankit considers a password to be good if all of its odd-length substrings are palindromes. Given a string S, help the King to judge whether it is a good password or not. ###Input:
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