[test cases are not sufficient]: should include a long number string

  • 3

    For instance, "1234567890123456789012345678901234567890". This is because some problem designs may not check the value of concurrent number to break the while loop search.

  • 1

    I also think so. Test cases should contain string that can make long long type overflow.

  • 0

    Sorry for missing this earlier and thanks, I've added your suggested test case.

Log in to reply

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