You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
advent-of-code/2022/bqn/day_06.bqn

12 lines
327 B

# •Show 4 + ⊐⟜1 ⍷⊸≡¨ <˘ 4↕ •FChars "../day_06.txt"
# •Show 14 + ⊐⟜1 ⍷⊸≡¨ <˘ 14↕ •FChars "../day_06.txt"
n 4
input •FChars "../day_06.txt"
windows n input
uniq ˘ windows
index uniq 1
•Show n + index
# PktN←{𝕨+⊑1⊐˜(∧´∊)˘𝕨↕𝕩}