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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy