Giter VIP home page Giter VIP logo

adventofcode_2020's Introduction

The 25 Days of Christmas 2020

This is a simple implementation for the challenges at Advent of Code 2020. Enjoy!

Details

Each solution was created via cargo new --vcs none day_NN, and (usually) have an independent src/part1.rs and src/part2.rs, so you can easily see what was changed to finish the second half.

I focused on a balance between code readability and writing speed: I want to get these done quickly, but I also want to come back at some point and figure out what I did.

Comments

Day 1

Love the story! I need a vacation, too.

Day 2

Trying to use more idiomatic Rust today, which includes impl FromStr. I imagine I'll be seeing a lot of that.

Day 3

Maybe this use of FromStr is overkill? Nah.

Day 4

OK, List could have just been a simple function in this solution. I need to stop with the FromStr already.

Day 5

For some reason, I found today's problem very easy. Guess I'm just a binary thinker.

Day 6

Part 1 of today's problem was much easier than part 2. I eventually just did a manual set comparison with a special case for the first person, which seems a bit hack.

Day 7

Digging the FromStr again for today's problem. So much string breakdowns, almost seems like I should have written a grammar or something.

adventofcode_2020's People

Contributors

chaaz avatar

Watchers

 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.