File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ Your ideas/fixes/algorithms are more than welcome!
213213|392|[ Is Subsequence] ( https://leetcode.com/problems/is-subsequence/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_392.java ) | O(m* n)|O(1) | Medium| Array, String
214214| 390| [ Elimination Game] ( https://leetcode.com/problems/elimination-game/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_390.java ) | O(logn)| O(1) | Medium|
215215| 389| [ Find the Difference] ( https://leetcode.com/problems/find-the-difference/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_389.java ) | O(n)| O(1) | Easy|
216- |388|[ Longest Absolute File Path] ( https://leetcode.com/problems/longest-absolute-file-path/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/LongestAbsoluteFilePath .java ) | O(n)|O(d) | Medium| Stack
216+ |388|[ Longest Absolute File Path] ( https://leetcode.com/problems/longest-absolute-file-path/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_388 .java ) | O(n)|O(d) | Medium| Stack
217217|387|[ First Unique Character in a String] ( https://leetcode.com/problems/first-unique-character-in-a-string/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_387.java ) | O(n)|O(n) | Easy| HashMap
218218| 386| [ Lexicographical Numbers] ( https://leetcode.com/problems/lexicographical-numbers/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_386.java ) | O(n)| O(1) | Medium|
219219|385|[ Mini Parser] ( https://leetcode.com/problems/mini-parser/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_385.java ) | O(n)|O(h) | Medium| Stack
Original file line number Diff line number Diff line change 44
55import java .util .Stack ;
66
7- public class LongestAbsoluteFilePath {
7+ public class _388 {
88 public static int lengthLongestPath (String input ) {
99 Stack <Integer > stack = new Stack ();
1010 int longestLen = 0 , currDirLen = 0 ;
You can’t perform that action at this time.
0 commit comments