Skip to content

Commit de5978b

Browse files
[LEET-3304] fix build
1 parent 8c80a63 commit de5978b

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
public class _848 {
44
public static class Solution1 {
55
public String shiftingLetters(String s, int[] shifts) {
6-
long[] preSums = new long[shifts.length]; // use long type to avoid integer addition overflow
6+
long[] preSums =
7+
new long[shifts.length]; // use long type to avoid integer addition overflow
78
for (int i = 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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.fishercoder.fourththousand;
22

3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
35
import com.fishercoder.solutions.fourththousand._3304;
46
import org.junit.jupiter.api.BeforeEach;
57
import org.junit.jupiter.api.Test;
68

7-
import static org.junit.jupiter.api.Assertions.assertEquals;
8-
99
public class _3304Test {
1010
private _3304.Solution1 solution1;
1111

0 commit comments

Comments
 (0)