Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
4.2
Given a String S and a character C, find the length of the longest palindromic subsequence of S containing the character C.
Input
Output
For every testcase print the maximum length on a new line.
Constraints
A password reset link will be sent to the following email id
?