Browse Source

Adding comment

pull/8/head
Ryan Reed 3 years ago
parent
commit
faf681b829
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      puzzles/day07.py

+ 1
- 0
puzzles/day07.py View File

@ -33,6 +33,7 @@ class AlignCrabSubs:
return int(sum(abs(num - target) for num in self.positions))
def calc_fuel_pricey(self, target: int) -> int:
# This is slow and needs reworking
fuel = 0
for num in self.positions:
num_range = abs(num - target) + 1


Loading…
Cancel
Save