[CLEANUP] Unused code

This commit is contained in:
immortaly007 committed 2023-12-06 19:16:15 +01:00
1 parent 95da8147ec
commit fcc6bb39d0
2 files changed
-9

No files matched your search

-5
View File
@@ -23,11 +23,6 @@ impl Day6 {
}
}
fn calc_dist(time: u64, pressed: u64) -> u64 {
if pressed > time { return 0 }
return (time - pressed) * pressed
}
fn calc_ways_to_beat(time: u64, dist: u64) -> u64 {
// y = (t - x) * x = tx - x^2