Code Monkey home page Code Monkey logo

aoc2021's Introduction

Advent of Code 2021

adventofcode.com/2021

My Rust solutions (This repo)

This year got a bit ugly at the end. My protocol when things should work, but just don't:

  1. Carefully re-read the challenge discription to validate my understanding and to look for edge-case details (which are explicitly covered whenever there is any ambiguity.)
  2. Create the test cases if I initially skipped them. The examples are provided for that reason.
  3. Walk through the code, especially the initial steps before it scales up (way up!) and validate the intermediate state of things.
  4. If ordinary debugging isn't helpful, I sometimes downgrade to "printf debugging" -- especially helpful to identify when loops go wrong.
  5. Get hints when I'm stuck, or not confident in my approach. Reddit's SOLUTION MEGATHREAD is a great place for "hints". It is helpful to remember that the leaderboard is full of people who solved the same puzzle very quickly. What am I proving if I continue to struggle after 3, 4, or 10 hours? I should get a hint before I get to that point.

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.