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:
Fennel Kora 2022-12-08 17:25:41 -05:00
parent c8e182c610
commit 08333d2743
4 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -58,7 +58,7 @@ public class Day07A {
Stack<Integer> sortList = new Stack<Integer>(); Stack<Integer> sortList = new Stack<Integer>();
for (Integer i : sizes) { for (Integer i : sizes) {
if (i >= 30000000 - (70000000 - Collections.max(sizes))) { if (i >= (30000000 - (70000000 - Collections.max(sizes)))) {
sortList.push(i); sortList.push(i);
} }
} }

Binary file not shown.

View file

@ -54,7 +54,7 @@ public class Directory {
break; break;
} }
} }
if (foundFlag = false) { if (!foundFlag) {
this.addDir(s); this.addDir(s);
} }
return retDir; return retDir;