AdventOfCode2021 - Day 8

This is a thread to discuss Day8
https://adventofcode.com/2021/day/8

REMEMBER!
It is VERY important NOT to write any public spoilers :slight_smile:
ALWAYS keep spoiler stuff hidden inside one of these

Summary

This text will be hidden

which you can obtain by clicking on the gear icon

image

Well - I can't even understand the question :slight_smile:

Because it's rather obfucation than clarification (on purpose I think) :wink:
Only one sentence in the whole description contains solution.

A spelling mistake in the title. :slight_smile:

Once you understand the question then its not too bad (and very quick) to get the answer :slight_smile:

I've done part 1 duration <100ms
Project

Part1, ~20ms

untitled script pic - 2021-12-08T212512.665

Part2???
I'm not sure if I overlooked or misunderstand the description. Does the mapping and order of the 5,6 segments digits differ for every row? And the mapping algorithm should be discovered as a part of the solution? And segments must be sorted before comparing?
Seems like overkill to me.

Project - still :construction:

I think mapping is different for every row

And the mapping algorithm needs to work for all rows

And up to each of us to decide whether sorting helps or not

This is what I think - still haven't got an algorithm yet :frowning:

Finally managed to decode the displays and get the right answer for Part 2
Duration 5.7 secs

Project using Snap! 7 rc2