Suppose we abstract our file system by a string in the following manner:
The string"dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext"represents:
length[cur+1] = length[cur] + path.length() -cur +1;
Suppose we abstract our file system by a string in the following manner:
The string"dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext"represents:
length[cur+1] = length[cur] + path.length() -cur +1;