Adds some minor comments

master
Joey Pollack 1 year ago
parent 68d575c538
commit 58a5c05cfc

@ -45,6 +45,8 @@ impl Day7
fn solve_first_case(self: &mut Self) -> String
{
// The engineers just need the total calibration result,
// which is the sum of the test values from just the equations that could possibly be true.
self.final_result.to_string()
}

@ -58,4 +58,13 @@ impl Equation
println!();
}
// Returns None if the equation can not be made true
// NOTE: Operators are always evaluated left-to-right, not according to precedence rules!
pub fn can_be_true(self: &Equation) -> Option<Vec<Operators>>
{
None
}
}
Loading…
Cancel
Save