Skip to content

Commit 6905ced

Browse files
committed
2022-04-28
1 parent 0dd32dc commit 6905ced

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## GO
2+
### 文件名
3+
$!velocityTool.smallCamelCaseName($!{question.titleSlug})_${question.frontendQuestionId}
4+
### Code Template
5+
```go
6+
package main
7+
${question.content}
8+
${question.code}
9+
```
10+
11+
## Java
12+
### 文件名
13+
### Code Template
14+
```java
15+
package leetcode.editor.cn;
16+
${question.content}
17+
18+
${question.code}
19+
```

architecture-algorithms/architecture-algorithms.iml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="CheckStyle-IDEA-Module">
4+
<option name="configuration">
5+
<map />
6+
</option>
7+
</component>
8+
<component name="Go" enabled="true" />
39
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
410
<output url="file://$MODULE_DIR$/target/classes" />
511
<output-test url="file://$MODULE_DIR$/target/test-classes" />

architecture-algorithms/src/main/java/leetcode/editor/cn/AddDigits.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public int addDigits(int num) {
7070

7171

7272
public static void main(String[] args) {
73-
final int sum = Integer.valueOf("1") + 1;
73+
final int sum = Integer.parseInt("1") + 1;
7474
System.out.println(sum);
7575
}
7676
}

architecture-algorithms/src/main/java/leetcode/editor/cn/Base7.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package leetcode.editor.cn;
22

3+
import com.google.common.collect.Lists;
34
import leetcode.editor.cn.common.AssertTool;
45

56
/**
@@ -58,5 +59,7 @@ public void recur(int num, StringBuilder sb) {
5859

5960
public static void main(String[] args) {
6061
AssertTool.assertEquals("-11", new Solution().convertToBase7(-8));
62+
63+
final var list = Lists.newArrayList(1, 2, 3);
6164
}
6265
}

0 commit comments

Comments
 (0)