{"id":21615852,"url":"https://github.com/valango/adventofcode_2021","last_synced_at":"2026-05-16T11:01:18.657Z","repository":{"id":87586952,"uuid":"434665263","full_name":"valango/AdventOfCode_2021","owner":"valango","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-04T18:26:08.000Z","size":208,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T05:47:39.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valango.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-03T16:37:04.000Z","updated_at":"2022-01-04T18:26:12.000Z","dependencies_parsed_at":"2023-03-13T18:43:46.687Z","dependency_job_id":null,"html_url":"https://github.com/valango/AdventOfCode_2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/valango/AdventOfCode_2021","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FAdventOfCode_2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FAdventOfCode_2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FAdventOfCode_2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FAdventOfCode_2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valango","download_url":"https://codeload.github.com/valango/AdventOfCode_2021/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FAdventOfCode_2021/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T22:13:00.796Z","updated_at":"2026-05-16T11:01:18.612Z","avatar_url":"https://github.com/valango.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent Of Code '2021\n\nMy [adventofcode.com](https://adventofcode.com) adventures.\u003cbr /\u003e\nOlder ones: [2020](https://github.com/valango/adventOfCode),\n[2015](https://github.com/valango/AdventOfCode_2015).\n\n## Diary\n\n* `day 01:` Joined the races, with just 16 hrs of delay 🐌🐌🐌\n* `day 02:` So far, its all trivial. Joined by afternoon 🐌, actual time 23min.\n* `day 03:` Actually simple stuff, but it really took some focussing (101min).\n* `day 04:` A nice one. Some time was lost for misreading the input format.\n* `day 05:` Simple, but... man, I hate numbers - I just can't _see_ them!.\n* `day 06:` Now, this was a good lesson - I lost at least 30mins implementing\n  _an illustration of example_, rather than the actual logic of the process. 🤬\n* `day 07:` This seemingly trivial puzzle left me clueless - I just could not 👁👁 visualize the\n  problem!\u003cbr\u003eOnly when I figured out it is like finding a balance point for a bar with suspended\n  weights⚖️, everything became clear, finally.\n* `day 08:` Wasted too much time working on description details. Succeeded debugging of code #2 only\n  after using simplified datasets.\n* `day 09:` Made _a lot_ of mistakes. 🤡\n* `day 10:` A recipe for immediate failure: _\"Oh, I know how to do that!\"_.\n* `day 11:` Simulations are fun! Some code from day09 was reusable today.\n* `day 12:` Seemingly simple 🤓.\n* `day 13:` That was fun!\n* `day 14:` Damn, I was barely able to steal some time for AOC today! The puzzle was fun,\nsimple simulation resulted in 💥 explosion on part 2 and the correct solution was of less code\n  than the initial part 1 😎!\n* `day 15:` This was a clever one - at first, I fell into trap of best-route-search 💀;\n  the working solution was to just flood the whole field with cumulative risk values.\n  I bet the algorithm can still be improved.\n* `day 16:` That was fun!\n* `day 17:`Mistakenly left off one character when copy-pasting input data and was about to\nnuke my own brains trying to figure out how to solve the part #2! 🤬\n* `day 18:` Lost insane amount of time because of stupid mistake: the puzzle hung up, so I\nwas sure it is because of complexity, but the real reason was I had chosen a wrong way\n  for data preparation, so the actual puzzle did not even start... doh.\n* `day 19:` This was horrible - I just could not visualize the situation. 🥶\n  Looking at my code I guess I probably solved it hard way.\n* `day 25:` After struggling through massive maelström 🌪 of Santa, Sauerkraut and other stuff,\n  I finally made it back to AoC on Dec-26th!\u003cbr\u003e\n  Now, the part #1 was surprisingly simple, but to open the #2,\n  I need to clear all the pending puzzles from days 17 and 19-24 first! 😳\n\n## Track record\n\nMy ranking placements and final times for puzzle 1 and 2 by days.\u003cbr \u003e\n**Others** is number of solvers of both puzzles and **Just 1** of those who had solved only the\nfirst one, taken from\n[global stats](https://adventofcode.com/2021/stats) when I completed.\n\n| day | Rank 1 | Time 1 | Rank 2 | Time 2 | Others | Just 1|\n| ---: | ---: | :---: | ---: | :---: |---: |---: |\n| 1 | 87733 | 16:09:30 | 77832 | 16:26:49 |127445|14909|\n| 2 | 58863 | 08:21:25 | 55421 | 08:26:51 |106584|4125|\n| 3 | 8808 | 00:25:36 | 10369 | 01:41:35 |45825|23066|\n| 4 | 4087 | 00:41:37 | 4896 | 01:06:05 |6191|1630|\n| 5 | 8539 | 01:18:17 | 7974 | 01:44:41 |8093|1972|\n| 6 | 8567 |00:30:44 | 7349 | 01:06:45 |7484|4379|\n| 7 | 16732 | 01:54:24 | 15841 | 02:05:48 |15930|1773|\n| 8 | 9645 | 00:41:25 | 17577 | 07:04:10 |15930|1773|\n| 9 | 9219 | 00:51:40 | 8295 | 01:55:16 |8308|5105|\n| 10 | 9915 | 01:12:20  | 10966 | 02:00:54 |10982|1716|\n| 11 | 6808 | 01:22:26  | 6819 | 01:30:05 |6882|331|\n| 12 | 8918 | 02:55:40  | 8762 | 03:45:21 |8771|1601|\n| 13 | 8031 | 01:28:30  | 4321 | 01:35:31 |7324|1034|\n| 14 | 11437 | 02:07:05  | 16267 | 08:17:38 |18245|9021|\n| 15 | 11538 | 04:58:08  | 9372 | 06:00:22 |9388|3618|\n| 16 | 6503 | 03:47:12  | 6251 | 04:41:06 |6270|1290|\n| 17 | 13740 | 07:57:44  | 25251 | \u003e24h | | |\n| 18 | 8060 | 11:51:28  | 11314 | 17:57:49 |11326|281|\n| 19 | 15318 | \u003e24h | 15075 | \u003e 24h |\n| 25 | 10309 |  \u003e24h |   |  | 6259 | 4060 |\n\n![](quote.png)\n\n## Code\n\nThe project codebase consists of daily puzzle files named like `day01.js`, universal runner code and\nmodule tests for runner code.\n\n### Performance report\n\nThe following report was generated using command `./run abm`.\n\n| day|Main1|Main2|Demo1|Demo2|M1_µs|M2_µs|D1_µs|D2_µs|\n|---:|---:|---:|---:|---:|---:|---:|---:|---:|\n|01|1759|1805|7|5|92|252|76|51|\n|02|2073315|1840311528|150|900|1074|408|68|81|\n|03|3309596|2981085|198|230|698|2872|120|962|\n|04|82440|20774|4512|1924|318|51360|172|61|\n|05|98486|163135|5|12|90402|62993|239|81|\n|06|362346|1639643057051|5934|26984457539|19083|263|3021|348|\n|07|345035|97038163|37|168|3100|4398|125|87|\n|08|344|1048410|26|61229|106|457651|140|36204|\n|09|417|1148965|15|1134|6902|14368|248|5247|\n|10|341823|2801302861|26397|288957|4142|18103|222|576|\n|11|1719|232|1656|195|1245|629|4499|558|\n|12|4167|98441|10|36|9184|216149|357|277|\n|13|827|EAHKRECP|17|O|2800|7831|455|1658|\n|14|2988|3572761917024|1588|2188189693529|306|2730|374|328|\n|15|613|2899|40|315|30914|1553300|1044|10114|\n|16|923|258888628940|6,9,14,16,12,23,31|3,54,7,9,1,0,0,1|588|475|630|95|\n|17|9180|3767|45|112|10698|7593|336|6362|\n|18|4469|4770|4140|3993|15882|393053|8026|9140|\n|19|332|8507|79|3621|2230650|215|141873|224|\n|25|568| |58| |192101| |2636| |\n\n### Usage\n\nAfter installing with npm or yarn, just type `./run` and the puzzles from the most recent puzzle\nfile will be executed.\n\nThe following command line parameters apply:\n\n* integer - day number(s), (default: most recent day only);\n* a: all days;\n* b: both datasets (default: main data only);\n* d: example data only (mutually exclusive with 'b' option;\n* h: print help information and terminate;\n* j: generate output as JSON-formatted rows;\n* m: generate markdown output (default: text table for multiple, JSON for single puzzle).\n\nIf neither 'b' nor 'd' is present, only the main dataset is used. If 'd' is present, and demo data\nis not defined, it falls back to main dataset.\n\n### Coding\n\nTo start with a new puzzle for, say, _day 14_, do:\n1. copy the contents of [template.js](./template.js) to `day14.js`;\n1. create `day14.txt` in `./data` directory and populate it with data from the website;\n1. have fun!\n\nIt is recommended to copy the puzzle data into a text file in `data` folder.\n\n### Debugging\n\n**To trap failed assertions** when debugging, set a breakpoint to\n[runner/index.js](./runner/index.js) line #20.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalango%2Fadventofcode_2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalango%2Fadventofcode_2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalango%2Fadventofcode_2021/lists"}