Skip to content

Commit de73f2a

Browse files
committed
fd
1 parent 074b4fc commit de73f2a

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

test/src/main/java/com/inuker/test/main.java

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,10 @@
2222
public class main {
2323

2424
public static void main(String[] args) {
25+
2526
}
2627

27-
public int lengthLongestPath(String input) {
28-
Stack<Integer> stack = new Stack<Integer>();
29-
int max = 0;
30-
for (String line : input.split("\n")) {
31-
int depth = line.lastIndexOf("\t") + 1;
32-
while (stack.size() > depth) {
33-
stack.pop();
34-
}
35-
int parentLen = stack.isEmpty() ? 0 : stack.peek();
36-
int len = parentLen + line.length() - depth;
37-
if (line.contains(".")) {
38-
max = Math.max(len, max);
39-
} else {
40-
stack.push(len + 1);
41-
}
42-
}
43-
return max;
28+
public String nextClosestTime(String time) {
29+
4430
}
4531
}

0 commit comments

Comments
 (0)