new getInput() interface

This commit is contained in:
Stefan Harmuth 2022-12-10 10:30:49 +01:00
parent 553723520c
commit 8837b97623

View File

@ -15,7 +15,7 @@ class Day(AOCDay):
def count(self, step: int = 1) -> int: def count(self, step: int = 1) -> int:
count = 0 count = 0
depths = self.getInputListAsType(int) depths = self.getInput(int)
for x in range(step, len(depths)): for x in range(step, len(depths)):
if depths[x] > depths[x - step]: if depths[x] > depths[x - step]:
count += 1 count += 1