We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e3a64 commit ff55543Copy full SHA for ff55543
2022/Day07/Solution.cs
@@ -8,13 +8,13 @@ namespace AdventOfCode.Y2022.Day07;
8
class Solution : Solver {
9
10
public object PartOne(string input) {
11
- return GetDirectorySizes(input).Where(size => size < 100_000).Sum();
+ return GetDirectorySizes(input).Where(size => size < 100000).Sum();
12
}
13
14
public object PartTwo(string input) {
15
var directorySizes = GetDirectorySizes(input);
16
- var freeSpace = 70_000_000 - directorySizes.Max();
17
- return directorySizes.Where(size => size + freeSpace >= 30_000_000).Min();
+ var freeSpace = 70000000 - directorySizes.Max();
+ return directorySizes.Where(size => size + freeSpace >= 30000000).Min();
18
19
20
private List<int> GetDirectorySizes(string input) {
0 commit comments