Git Product home page Git Product logo

adventofcode-2021-8's Introduction

adventofcode-2021-8

Solutions to the Day 8 challenges for Advent of Code 2021

The Challenge

Algo for finding digits based on digit codes as sets:

* len 2? digit is 1
* len 3? digit is 7
* len 4? digit is 4
* len 5?
  * is a superset of the code for 1? digit is 3
  * has a set difference of size 2 with the code for 4? digit is 2
  * else digit is 5
* len 6?
  * is a superset of the code for 4? digit is 9
  * else, is a superset of the code for 1? digit is 0
  * else digit is 6
* len 7? digit is 8

Algo for finding total output based on output codes as sets and the above findings:

* output codes' digital values can be found via lookup using previous section's data
* an output code quartet is the string value of each output code on a line's corresponding digit, string-concatenated
* the sum is the set of all output code quartets, integer-added

adventofcode-2021-8's People

Contributors

sapphon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.