Skip to content

Commit 8bb50bc

Browse files
committed
[Python/2021] Move solutions into .py files
1 parent dbecbfe commit 8bb50bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1195
-4842
lines changed

Python/2021/01.ipynb

-203
This file was deleted.

Python/2021/01.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
3+
from lib import *
4+
5+
input = read_input(2021, 1)
6+
7+
nums = ints(input)
8+
9+
print(sum(b > a for a, b in sliding_window(nums, 2)))
10+
print(sum(b > a for a, b in zip(nums, nums[3:])))

0 commit comments

Comments
 (0)