Skip to content

Commit 21cf070

Browse files
committed
refactor: minor line adjustments
1 parent b84ae80 commit 21cf070

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/adventofcode/flashk/day09/DiskFragmenter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ public class DiskFragmenter {
99
private final Deque<Integer> diskDeque = new ArrayDeque<>();
1010

1111
public DiskFragmenter(List<String> inputs) {
12-
char[] diskMap = inputs.get(0).toCharArray();
1312

13+
char[] diskMap = inputs.get(0).toCharArray();
1414
int fileId = 0;
1515
int lastBlockIndex = 0;
16+
1617
for(int i = 0; i < diskMap.length; i++) {
18+
1719
int blockSize = Character.getNumericValue(diskMap[i]);
1820

1921
for(int blockIndex = lastBlockIndex; blockIndex < lastBlockIndex + blockSize; blockIndex++) {

0 commit comments

Comments
 (0)