Results for "cbbd"

  • 0

    I'm failing the following test case:

    Input: "cbbd"
    Output: "cb"
    Expected: "bb"

    Why is "cb" not a valid answer? It is the same length as "bb", and is also a palindrome.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.