Skip to content

Commit

Permalink
[Python/2021] Move solutions into .py files
Browse files Browse the repository at this point in the history
  • Loading branch information
Defelo committed Oct 28, 2023
1 parent dbecbfe commit 8bb50bc
Show file tree
Hide file tree
Showing 52 changed files with 1,195 additions and 4,842 deletions.
203 changes: 0 additions & 203 deletions Python/2021/01.ipynb

This file was deleted.

10 changes: 10 additions & 0 deletions Python/2021/01.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import sys

from lib import *

input = read_input(2021, 1)

nums = ints(input)

print(sum(b > a for a, b in sliding_window(nums, 2)))
print(sum(b > a for a, b in zip(nums, nums[3:])))
Loading

0 comments on commit 8bb50bc

Please sign in to comment.