General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2021 Day 8 (BaseA Style)

jdunkerley79
ACE Emeritus
ACE Emeritus

1436371257-joseph-michael-luminosity-5-1024x640.jpg

Discussion thread for day 8 of the Advent of Code - https://adventofcode.com/2021/day/8

21 REPLIES 21
Pang_Hee_Choy
12 - Quasar

using the same logic with @SeanAdams but i use Replacechar() and length() for to tackle the sorting.

it reduce the need to sort the alphabet.

Spoiler
Pang_Hee_Choy_1-1639379880579.png

cross tab the known digit 1,4,7,8 and append to unknow digit.
apply the logic in. 
Pang_Hee_Choy_2-1639379900997.png

brute force all 10 signal to the each output digit, use filter to sort the correct digit.

Pang_Hee_Choy_3-1639379956912.png



 

 

 

 

caitlynmcintyre
9 - Comet

I thought I was so smart but Part 2 really became one of those crossword book logic puzzles.

If Mary lives on Smith Street with a Chihuahua then Mark must live on Brunswick Street and drive a green car 😩

 

Spoiler
This is certainly not an elegant solution, but it got me there.

caitlynmcintyre_1-1639716072510.png

Close up of how i figured out the numbers

caitlynmcintyre_2-1639716196385.png

 

Labels