Why is empty input an valid input?


  • 0
    D

    My solution fails when the input is empty:

    Input: ""
    Output: []
    Expected: [""]

    But I do not think empty input is a digit string which is stated in problem description.


Log in to reply
 

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