Dont understand why my output is wrong


  • 0
    W

    Input: "010010"
    Output: ["0.1.00.10","0.1.001.0","0.10.0.10","0.10.01.0","0.100.1.0","01.0.0.10","01.0.01.0","01.00.1.0","010.0.1.0"]
    Expected: ["0.10.0.10","0.100.1.0"]


  • 5

    00 and 01 are not valid parts of an IP address.


Log in to reply
 

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