Today wrapped up nicely with a baby/giant step solution: 'a M b d' =: 7 20201227 , ".;._2 (1!:1<'25.in') d M&|@^m#.((a M&|@^i.m)(i.~,i.)M|b*a M&|@^(M-1+m)*i.m)-.m=.>.%:M
I still need to correct my day 20 (I get the right answer but not on other people's inputs...) and I'd like to get day 19 part 2 in J as well. Anyhow, decently fun aoc, cheers all On 12/25/20, 'Michael Day' via Chat <[email protected]> wrote: > I'd meant to post this yesterday evening! Happy Christmas... > > I eventually went back to day 19 yesterday, 23rd, and solved part 1 > after finally seeing why > all my predicted valid strings were only 15 or 16 chars long, when the > shortest messages > were 24 chars! Very verbose code compared to that of the K > aficionados. I still don't see > how to tackle part 2 > > I haven't get around to trying days 20 and onwards, but might have a > look at 21 23 & 24 > in view of your (David's) remarks, come the weekend. > > So only 37 Gold Stars, here! > > Cheers, > > Mike > > > On 24/12/2020 23:06, David Lambert wrote: >> --- Day 19: Monster Messages --- >> Part b: unsolved >> >> --- Day 21: Allergen Assessment --- >> No solutions. >> >> --- Day 23: Crab Cups --- >> Part b: implemented my brutish j model in c, which ran 5 hours on a >> mainframe. Didn't bother to seek a pattern. >> >> --- Day 24: Lobby Layout --- >> Struggled with complex number comparisons until I thought to use integral >> coordinates. Struggled with memory overfill and slow performance until I >> had the insight that only the black tiles are required for the next day's >> tile pattern. >> >> I did not save my codes. >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
