https://adventofcode.com/2021/day/8
For day 8, the puzzle declared that we had a seven segment display
(displaying four digits) that was on the fritz.
Our sample data represented the ten different values being displayed
during observation, followed by a '|' character, followed by the four
values
I took pretty much the same approach as Raul (i.e. bruteforce), but
expressed it tacitly:
NB. Day 07: Crab alignment
NB. find position globally closest to all input numbers, each step being 1
fuel unit
i07=: ".}:freads'07.txt'
irg=: <./ ([+i.@>:@-~) >./ NB. integer range spanning the range
I followed the recommendation in the wiki to load the explorer profile. An
error occurs on launching the Qt IDE as macos refused to load libjpcre2.dylib.
I had to go find it and clear the quarantine for the library. Might want to
add some instructions or update the shell script that clears ma
Apparently both @ and ]:@("_) work. Thank you all.
On Mon, 27 Dec 2021 at 11:32 PM 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> Untested but,
>
> Bind =: ]: @ ("_)
>
>
>
>
>
>
> On Sunday, December 26, 2021, 04:45:08 p.m. EST, bill lam <
> bbill@gmail.com> wrote:
>
>
My take on Day 6 was similar to Raul's second part's solution. I did it
tacitly though:
I realised no fish would ever have an age >8, so I kept the number of
fishes for each age in an array, i.e. n{state is the number of fishes at
age n (see enc below).
Then each step rotates the fishes and adds ne