8000 update · fibers/ex-algorithm@750e834 · GitHub
[go: up one dir, main page]

Skip to content

Commit 750e834

Browse files
committed
update
1 parent c10cc91 commit 750e834

File tree

4 files changed

+31
-16
lines changed

4 files changed

+31
-16
lines changed

bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b0f145e6161d94d2f6e13d3f27455fc073f46557

pom.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
</properties>
2020

2121
<dependencies>
22+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
2223
<dependency>
23-
<groupId>junit</groupId>
24-
<artifactId>junit</artifactId>
25-
<version>4.11</version>
26-
<scope>test</scope>
24+
<groupId>org.junit.jupiter</groupId>
25+
<artifactId>junit-jupiter-api</artifactId>
26+
<version>5.5.2</version>
27+
<scope>test</scope>
2728
</dependency>
2829

30+
2931
<!-- Tomcat -->
3032
<!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-catalina -->
3133
<dependency>

src/main/java/com/fibers/algorithm/leetcode/_13/Solution.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
public class Solution {
77

88
private static final Map<Character, Integer> map = new HashMap<Character, Integer>() {
9+
/**
10+
*
11+
*/
12+
private static final long serialVersionUID = 1L;
13+
914
{
1015
put('M', 1000);
1116
put('D', 500);

src/main/java/com/fibers/algorithm/leetcode/_17/Solution.java

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,30 @@
1616
*/
1717
public class Solution {
1818

19-
19+
2020
public static void main(String[] args) {
2121
Solution s = new Solution();
2222
Utils.printList(s.letterCombinations("23"));
2323
}
2424

2525
// @lc code=start
26-
Map<String, String> phone = new HashMap<String, String>() {{
27-
put("2", "abc");
28-
put("3", "def");
29-
put("4", "ghi");
30-
put("5", "jkl");
31-
put("6", "mno");
32-
put("7", "pqrs");
33-
put("8", "tuv");
34-
put("9", "wxyz");
35-
}};
26+
Map<String, String> phone = new HashMap<String, String>() {
27+
/**
28+
*
29+
*/
30+
private static final long serialVersionUID = 1L;
31+
32+
{
33+
put("2", "abc");
34+
put("3", "def");
35+
put("4", "ghi");
36+
put("5", "jkl");
37+
put("6", "mno");
38+
put("7", "pqrs");
39+
put("8", "tuv");
40+
put("9", "wxyz");
41+
}
42+
};
3643

3744
public List<String> letterCombinations(String digits) {
3845
List<String> result = new ArrayList<>();
@@ -58,7 +65,7 @@ public void backtrack(List<String> result, String combination, String digits) {
5865
}
5966
}
6067
}
61-
68+
6269
}
6370
// @lc code=end
6471

0 commit comments

Comments
 (0)
0