advent-of-code/2023/day11/day11.bqn
2024-11-12 21:46:18 +01:00

15 lines
358 B
BQN
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

nminput'#'=>•FLines"input"
pos¨´m(÷˜|)/input
dists(+´|-)˜pos
emptyRows/(¬´˘)input
emptyCols/(¬´˘)input
nempty{x1y1𝕊x2y2:
a|-´emptyColsy2y1
b|-´emptyRowsx2x1
a+b
}˜pos
•Show 2÷˜+´dists+nempty
•Show 2÷˜+´dists+999999×nempty