-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
19 lines (16 loc) · 621 Bytes
/
Copy pathMain.java
File metadata and controls
19 lines (16 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package leetcode._71_;
import java.util.Stack;
/**
* Created by zhangbo54 on 2019-03-04.
*/
public class Main {
public static void main(String[] args) {
Solution solution = new Solution();
System.out.println(solution.simplifyPath("/home/"));
System.out.println(solution.simplifyPath("/../"));
System.out.println(solution.simplifyPath("/home//foo/"));
System.out.println(solution.simplifyPath("/a/./b/../../c/"));
System.out.println(solution.simplifyPath("/a/../../b/../c//.//"));
System.out.println(solution.simplifyPath("/a//b////c/d//././/.."));
}
}