Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1ae4bd

Browse filesBrowse files
committed
day 21
1 parent bbb62af commit f1ae4bd
Copy full SHA for f1ae4bd

File tree

2 files changed

+2
-1
lines changed
Filter options

2 files changed

+2
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
|[18](https://adventofcode.com/2020/day/18)|Operation Order|[py](/day18/main.py)|
2323
|[19](https://adventofcode.com/2020/day/19)|Monster Messages|[py](/day19/main.py), [alt](/day19/alt.py)|
2424
|[20](https://adventofcode.com/2020/day/20)|Jurassic Jigsaw|[py](/day20/main.py)|
25-
|[21](https://adventofcode.com/2020/day/21)|-|-|
25+
|[21](https://adventofcode.com/2020/day/21)|Allergen Assessment|[py](/day21/main.py)|
2626
|[22](https://adventofcode.com/2020/day/22)|-|-|
2727
|[23](https://adventofcode.com/2020/day/23)|-|-|
2828
|[24](https://adventofcode.com/2020/day/24)|-|-|

‎day21/main.py

Copy file name to clipboardExpand all lines: day21/main.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
remaining_foods = sorted(set(flatten(reduced)))
2525
count = len([f for f in flatten(foods) if f not in remaining_foods])
2626
print(count)
27+
2728
poss_mat = np.array([[1 if r in red else 0 for r in remaining_foods] for red in reduced])
2829

2930
change = True

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.