File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ Your ideas/fixes/algorithms are more than welcome!
548
548
| 52| [ N-Queens II] ( https://leetcode.com/problems/n-queens-ii/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_52.java ) | O(?)| O(?)| Hard|
549
549
| 51| [ N-Queens] ( https://leetcode.com/problems/n-queens/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_51.java ) | O(?)| O(?)| Hard|
550
550
| 50| [ Pow(x, n)] ( https://leetcode.com/problems/powx-n/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_50.java ) | O(logn)| O(logn)| Medium|
551
- |49|[ Group Anagrams] ( https://leetcode.com/problems/anagrams/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_49.java ) |O(m* logn)|O(m* n)|Medium| HashMap
551
+ |49|[ Group Anagrams] ( https://leetcode.com/problems/group- anagrams/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_49.java ) |O(m* logn)|O(m* n)|Medium| HashMap
552
552
|48|[ Rotate Image] ( https://leetcode.com/problems/rotate-image/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_48.java ) |O(n^2)|O(1)|Medium|Array
553
553
|47|[ Permutations II] ( https://leetcode.com/problems/permutations-ii/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_47.java ) |O(n* n!)|O(n)|Medium|Backtracking
554
554
|46|[ Permutations] ( https://leetcode.com/problems/permutations/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_46.java ) |O(n* n!)|O(n)|Medium|Backtracking
Original file line number Diff line number Diff line change 15
15
["nat","tan"],
16
16
["bat"]
17
17
]
18
+
18
19
Note: All inputs will be in lower-case.
19
20
*/
21
+
20
22
public class _49 {
21
23
22
24
public List <List <String >> groupAnagrams (String [] strs ) {
You can’t perform that action at this time.
0 commit comments