Python Solution for 2021 Advent of Code - Day 8 Part 2 - Seven Segment Search

preview_player
Показать описание
Solution to Part 2 of 2021's Advent of Code's Day 8's problem. You might have different data to deal with. However, hopefully the code still works the same for you as it does for me.

Bradley Sward is currently an Associate Professor at the College of DuPage in suburban Chicago, Illinois. He has earned a Masters degree in Software Engineering from DePaul University, a Masters degree in Computer Science from the University of Illinois at Springfield, and two Bachelors degrees in Computer Science and Molecular Biology from Benedictine University. Prior to teaching, Bradley worked for five years in the field of casino gaming on a variety of video slot machine and poker games. The Village People have been permanently etched into his brain.
Рекомендации по теме
Комментарии
Автор

on this task I broke down last year 🙈 solved today, and thank you for another solution idea!

nitokkk
Автор

Cool solution, been trying to solve this for a couple of days now :p this helped a lot

frederikandersen
Автор

Awsome solution!
I did go the same route, but instead of comparing to sevral numbers I only compaired only to 1, 4, and 7 to get the other numbers.

matshoemolsen
Автор

You could use set() to easily determine the intersection or difference between the digits

sem