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;
xiSuppose 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;
xi本文标题:388. Longest Absolute File Path
本文链接:https://www.haomeiwen.com/subject/iruuvttx.html
网友评论