add clarifying comment on where to_delete comes from
This commit is contained in:
parent
5426357cd7
commit
0cb9b68971
@ -65,7 +65,7 @@ fn part_two() {
|
|||||||
if let Ok(lines) = read_lines("./inputs/input") {
|
if let Ok(lines) = read_lines("./inputs/input") {
|
||||||
let mut stack: Vec<u32> = vec![0];
|
let mut stack: Vec<u32> = vec![0];
|
||||||
let space_to_free = 30000000 - (70000000 - 49192532); // size of all files, precomputed
|
let space_to_free = 30000000 - (70000000 - 49192532); // size of all files, precomputed
|
||||||
let mut to_delete = 70000000;
|
let mut to_delete = 70000000; // arbitrarily large
|
||||||
for line in lines {
|
for line in lines {
|
||||||
if let Ok(command) = line {
|
if let Ok(command) = line {
|
||||||
match command.as_str() {
|
match command.as_str() {
|
||||||
|
Loading…
Reference in New Issue
Block a user