What is "/..." is expected to output?


  • 1
    B

    The problem seems is not well defined regarding what is expected output for "/...", which is an illegal path in linux :)/

    Input:
    "/..."
    Output:
    "/"
    Expected:
    "/..."


  • 0
    C

    "..." might be a hidden file's name, it works in mac :)


Log in to reply
 

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