Is the test case dir\n file.txt valid?


  • 0
    G

    the blank in the input dir\n file.txt is tab or just 4 space.
    If it is tab which should be the same with dir\n\tfile.txt
    But if it is dir\n(space)(space)(space)(space)file.txt what do it mean
    the structure should be
    dir
    ___file.txt
    which means a file with name has four spaces at the begin and the file locate in root directory which is parallel with dir directory. The \t or tab indicate the level of deepth.


Log in to reply
 

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