Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde5978b

Browse files
[LEET-3304] fix build
1 parent8c80a63 commitde5978b

File tree

2 files changed

+4
-3
lines changed
  • src

2 files changed

+4
-3
lines changed

‎src/main/java/com/fishercoder/solutions/firstthousand/_848.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
publicclass_848 {
44
publicstaticclassSolution1 {
55
publicStringshiftingLetters(Strings,int[]shifts) {
6-
long[]preSums =newlong[shifts.length];// use long type to avoid integer addition overflow
6+
long[]preSums =
7+
newlong[shifts.length];// use long type to avoid integer addition overflow
78
for (inti =shifts.length -1;i >=0;i--) {
89
if (i <shifts.length -1) {
910
preSums[i] =preSums[i +1] +shifts[i];

‎src/test/java/com/fishercoder/fourththousand/_3304Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
packagecom.fishercoder.fourththousand;
22

3+
importstaticorg.junit.jupiter.api.Assertions.assertEquals;
4+
35
importcom.fishercoder.solutions.fourththousand._3304;
46
importorg.junit.jupiter.api.BeforeEach;
57
importorg.junit.jupiter.api.Test;
68

7-
importstaticorg.junit.jupiter.api.Assertions.assertEquals;
8-
99
publicclass_3304Test {
1010
private_3304.Solution1solution1;
1111

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp