new getInput() interface
This commit is contained in:
parent
553723520c
commit
8837b97623
2
day01.py
2
day01.py
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user