Skip to content

Commit 052e5ae

Browse files
authored
Update Solution.java
1 parent cf4fe65 commit 052e5ae

File tree

1 file changed

+0
-2
lines changed
  • src/main/java/g1001_1100/s1018_binary_prefix_divisible_by_5

1 file changed

+0
-2
lines changed

src/main/java/g1001_1100/s1018_binary_prefix_divisible_by_5/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
public class Solution {
99
public List<Boolean> prefixesDivBy5(int[] a) {
1010
List<Boolean> result = new ArrayList<>(a.length);
11-
1211
int remainder = 0;
1312
for (int j : a) {
1413
remainder = (j + (remainder << 1)) % 5;
1514
result.add(remainder == 0);
1615
}
17-
1816
return result;
1917
}
2018
}

0 commit comments

Comments
 (0)