Skip to content

Commit 9b57930

Browse files
committed
Update index.ts
1 parent 4da0bfa commit 9b57930

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

longest-absolute-file-path/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ export default function lengthLongestPath(input: string): number {
3030
// console.log(folder_current)
3131
return Math.max(0, ...Array.from(files_path.keys()).map((a) => a.length));
3232
}
33-
// console.log(lengthLongestPath(["file1.txt\nfile2.txt\nlongfile.txt", "dir\n\tsubdir1\n\t\tfile1.ext\n\t\tsubsubdir1\n\tsubdir2\n\t\tsubsubdir2\n\t\t\tfile2.ext", "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext",
34-
// "dir\n\tsubdir1\n\t\tfile1.ext\n\t\tsubsubdir1\n\tsubdir2\n\t\tsubsubdir2\n\t\t\tfile2.ext", "a"].join('\n')))
35-
// console.log(lengthLongestPath("a\n\tb\n\t\tc.txt\n\taaaa.txt"))
3633

3734
function count_char(s: string, c: string): number {
3835
let count = 0;

0 commit comments

Comments
 (0)