Test cases were not correct


  • 0
    S

    Submission Result: Wrong Answer More Details

    Input:
    "aaaaaxaaaaa"
    ["bbbbbxbbbbb"]
    Output:
    "aa9"
    Expected:
    "a10"

    According to definition, "aa9" is also correct.


  • 0

    Please read the description carefully.

    Each number or letter in the abbreviation is considered length = 1. For example, the abbreviation "a32bc" has length = 4.


  • 0
    S

    Got it. I thought it was the length of the abbreviation.


Log in to reply
 

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