Fixed a couple errors i nDirectory class, but no progress on resolving part 2
Changes to be committed: modified: 2022/day07/Day07A.class modified: 2022/day07/Day07A.java modified: 2022/day07/Directory.class modified: 2022/day07/Directory.java
This commit is contained in:
parent
c8e182c610
commit
08333d2743
4 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -58,7 +58,7 @@ public class Day07A {
|
|||
|
||||
Stack<Integer> sortList = new Stack<Integer>();
|
||||
for (Integer i : sizes) {
|
||||
if (i >= 30000000 - (70000000 - Collections.max(sizes))) {
|
||||
if (i >= (30000000 - (70000000 - Collections.max(sizes)))) {
|
||||
sortList.push(i);
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -54,7 +54,7 @@ public class Directory {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (foundFlag = false) {
|
||||
if (!foundFlag) {
|
||||
this.addDir(s);
|
||||
}
|
||||
return retDir;
|
||||
|
|
Loading…
Reference in a new issue