Upgrading Server to version 22.1? We’ve enabled the faster AMP engine by default. Read about how these system settings changes might affect you.

2022-05-24 Updates: Login: If you are facing issues with logging in, please try clearing all your cookies or trying another browser. We have a fix being deployed on the evening of 5/25. Email: If you're not seeing emails be delivered from the Community, please check your spam and mark the Community emails as not junk. Thank you for your patience.

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
9 - Comet

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
8 - Asteroid

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