Skip to content

Commit fb39de8

Browse files
authored
Merge pull request #1854 from sora0319/main
[sora0319] Week 5 Solutions
2 parents 2e254d2 + c553d99 commit fb39de8

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

best-time-to-buy-and-sell-stock/sora0319.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ public int maxProfit(int[] prices) {
1515
}
1616
}
1717

18+

encode-and-decode-strings/sora0319.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ public List<String> decode(String str) {
3131
return result;
3232
}
3333
}
34+

group-anagrams/sora0319.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ public List<List<String>> groupAnagrams(String[] strs) {
2525
}
2626
}
2727

28+

implement-trie-prefix-tree/sora0319.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,4 @@ public boolean startsWith(String prefix) {
3030
}
3131
}
3232

33-
/**
34-
* Your Trie object will be instantiated and called as such:
35-
* Trie obj = new Trie();
36-
* obj.insert(word);
37-
* boolean param_2 = obj.search(word);
38-
* boolean param_3 = obj.startsWith(prefix);
39-
*/
4033

word-break/sora0319.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ public boolean wordBreak(String s, List<String> wordDict) {
1717
return dp[s.length()];
1818
}
1919
}
20+

0 commit comments

Comments
 (0)