Hard
LABDifferent Palindromic Substrings
Return the number of distinct palindromic substrings in s.
EXAMPLES
Example 1
Input
{
"s": "bccb"
}
Output
6FUNCTION SHAPE
s: string→intReturn the number of distinct palindromic substrings in s.
EXAMPLES
Input
{
"s": "bccb"
}
Output
6FUNCTION SHAPE
s: string→intRuns solve(...) locally in a browser worker. SWE Playbook does not submit your code. Only run code you trust; Python code may access the network.