2024 day 2

This commit is contained in:
Dimitri Lozeve 2024-12-02 13:46:09 +01:00
parent b619d1244a
commit 86f2c69d03
3 changed files with 1012 additions and 0 deletions

6
2024/day02/day02.bqn Normal file
View file

@ -0,0 +1,6 @@
in•ParseFloat¨¨' '((¬-˜×·+`»>))¨•FLines"input"
Sorted
Step´(13)(|1(--))
•Show +´(SortedStep)¨in
Expand{((1+)𝕩)¨()𝕩}
•Show +´´¨(SortedStep)¨¨Expand¨in

1000
2024/day02/input Normal file

File diff suppressed because it is too large Load diff

6
2024/day02/test Normal file
View file

@ -0,0 +1,6 @@
7 6 4 2 1
1 2 7 8 9
9 7 6 2 1
1 3 2 4 5
8 6 4 4 1
1 3 6 7 9