Giter VIP home page Giter VIP logo

adventofcode2022's Introduction

AdventOfCode2022

A series of challenges in the spirit of the holidays for 2022 ๐ŸŽ„

All of these solutions will be written in Python with the following goals in mind:

  1. Efficiency, where an efficient algorithm will do the job without over-killing the problem. I am aiming for a cumulative sub-15 seconds using plain Python 3.9 (no PyPy or JIT compilers) for these tasks.
  2. Organization. Avoid duplicate code for better readability and modularity. No ๐Ÿ code!
  3. Keep it simple!

As always, the goal is to stay on the leaderboard. However, I am unsure if I can keep up with everyone this year. The past few months have been stressful and I haven't been able to practice like I used to. Hoping to take this year's advent less seriously.

Tasks

Day Name Part 1 Part 2 Points Runtime (ms)
1 Calorie Counting 150th 236th 0 xxx
2 Rock Paper Scissors 39th 369th 62 xxx
3 Rucksack Reorganization 41st 31st 60 + 70 = 130 xxx
4 Camp Cleanup 147th 68th 33 xxx
5 Supply Stacks 84th 62nd 17 + 39 = 56 xxx
6 Tuning Trouble 34th 26th 67 + 75 = 142 xxx
7 No Space Left On Device 1053rd 589th 0 xxx
8 Treetop Tree House 1047th 704th 0 xxx
9 Rope Bridge 117th 74th 27 xxx
10 Cathode-Ray Tube 756th 116th 0 xxx
11 Monkey in the Middle 85th 130th 16 xxx
12 Hill Climbing Algorithm 4th 4th 97 + 97 = 194 xxx
13 Distress Signal 421st 247th 0 xxx
14 Regolith Reservoir 132nd 103rd 0 xxx
15 Beacon Exclusion Zone 14th 97th 87 + 4 = 91 xxx
16 Proboscidea Volcanium 65th 312th 36 xxx
17 Pyroclastic Flow 161st 370th 0 xxx
18 Boiling Boulders 109th 177th 0 xxx
19 Not Enough Minerals 353rd 314th 0 xxx
20 Grove Positioning System 751st 482nd 0 xxx
21 Monkey Math 50th 81st 51 + 20 = 71 xxx
22 Monkey Map 217th 626th 0 xxx
23 Unstable Diffusion 177th 137th 0 xxx
24 Blizzard Basin 14th 12th 87 + 89 = 176 xxx
25 Full of Hot Air 664th 568th 0 xxx

Score: 1034 points

Rank: 61st

Total runtime: xxx milliseconds (one day I will fix this...)

Calendar Art

Credits to Eric Wastl (the creator of AOC) for the amazing ASCII calendar art!

Final Thoughts

While the rust definitely showed this year, I'm glad I made it onto the leaderboard and set some personal records (day 12)!

This was a good year to work on problem-solving and writing solid code, and it's clear that I could improve at it. Combined with ongoing finals, there were multiple days where I wrote straight garbage and unoptimized code.

I will come back again next year and (hopefully) keep the streak going!

adventofcode2022's People

Contributors

zecookiez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.