day01: and p1 is the same as p2, btw ...

This commit is contained in:
Stefan Harmuth 2021-12-01 07:05:50 +01:00
parent fcfdcd220c
commit abe1fc1532

View File

@ -8,11 +8,8 @@ class Day(AOCDay):
def part1(self):
count = 0
depths = self.getInputListAsType(int)
for i, x in enumerate(depths):
if i == 0:
continue
if x > depths[i-1]:
for x in range(1, len(depths)):
if depths[x] > depths[x-1]:
count += 1
return count