Initial commit

This commit is contained in:
Dimitri Lozeve 2024-11-12 21:43:32 +01:00
commit f242d2b0df
420 changed files with 62521 additions and 0 deletions

7
2022/day01/day01.bqn Normal file
View file

@ -0,0 +1,7 @@
P(10×+˜´0-'0') # string->number, 0 for empty string
iP¨¨(+`0=¨)•FLines"input" # parse input as list of lists
# Alternative version, with bqn-libs
#str ← •Import"../bqn-libs/strings.bqn"
#i ← str.ToNats¨ (2⥊@+10) str.Split •FChars"input"
•Show ´+´¨i # part 1
•Show +´3+´¨i # part 2