Wrong Test case?


  • 1

    Wrong Test case?
    In the case of multiple answers as shown in the second example below, you may return any one of them.

    Input:
    "aaaaaxaaaaa"
    ["bbbbbxbbbbb"]
    Output:
    "9a1"
    Expected:
    "a10"

  • 0
    E

    Check the description of question again :)
    "Each number or letter in the abbreviation is considered length = 1. For example, the abbreviation "a32bc" has length = 4."


  • 0

    @erica76 Thank you for pointing out.


Log in to reply
 

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