Oh, lengths can always be equal.

  • 0

    For one of my test cases before I submitted, I entered:


    My result was right, but for the expected result, it said:

    "Line 18: java.lang.StringIndexOutOfBoundsException: String index out of range: 2"

    ...ah, but lengths can always be equal, it says at the very very end.

Log in to reply

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