minus-squareTostiHawaii@feddit.nltoAdvent Of Code@programming.dev•[2023 Day 7] Part 2 poorly specifiedlinkfedilinkarrow-up8·10 months agoFor part 2, the only thing that I missed at first was the JJJJJ edge case. My approach was: count the amount of jokers remove them from the hand count the rest add the amount of jokers to the biggest set in the hand Last step fails if there are no other cards left after you remove the jokers… linkfedilink
minus-squareTostiHawaii@feddit.nltoProgrammer Humor@lemmy.ml•I think my code will be OK...linkfedilinkarrow-up4·10 months agoI hope leap days are handled a bit more sophisticated! linkfedilink
For part 2, the only thing that I missed at first was the JJJJJ edge case. My approach was:
Last step fails if there are no other cards left after you remove the jokers…