← All problemsSign in

Shil and Suffix Palindromes

Problem Desciption Shil likes to play with Palindromes very much.So he created his own version of Palindrome Game. In this game , he will be given a string S and he needs to find out total number of pairs ( A , B ) such that A and B both are Palindromes present in S and B is a proper suffix of A. Since string S contains a large number of Palindromes he asks for your help.Note that two Palindrom

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start