Last active
February 6, 2023 22:24
-
-
Save 0racle/d603fb7f8223de6a2ca750d274a13ede to your computer and use it in GitHub Desktop.
Aoc 2019 day 3 in J
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parse =. +/\@;@(<@(".@}. # 0j1 ^ 'RDLU' i. {.);._2)@,&',' | |
w =. Parse;._2 fread 'input' | |
echo <./ +/@:|@+. isects =. (e. # [)/ w | |
echo <./ +/ >: i.&isects"1 w |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment