{"id":21615862,"url":"https://github.com/valango/adventofcode","last_synced_at":"2025-10-12T17:09:08.724Z","repository":{"id":87586933,"uuid":"318713080","full_name":"valango/adventOfCode","owner":"valango","description":"My personal desk of adventofcode.com","archived":false,"fork":false,"pushed_at":"2020-12-25T09:32:19.000Z","size":1111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-12T18:47:58.536Z","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}},"created_at":"2020-12-05T05:50:53.000Z","updated_at":"2020-12-25T09:32:21.000Z","dependencies_parsed_at":"2023-03-13T18:43:46.768Z","dependency_job_id":null,"html_url":"https://github.com/valango/adventOfCode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/valango/adventOfCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FadventOfCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FadventOfCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FadventOfCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FadventOfCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valango","download_url":"https://codeload.github.com/valango/adventOfCode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valango%2FadventOfCode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012179,"owners_count":26085078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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:01.811Z","updated_at":"2025-10-12T17:09:08.697Z","avatar_url":"https://github.com/valango.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent Of Code\n\nMy [adventofcode.com](https://adventofcode.com) adventures.\n\nthe files named like `day_xx.js` contain daily quiz solutions as they were born -\nquick and dirty - with no afterwards-makeup.\nSometimes a `day_xx.nice.js` is there, though.\n\n_**NB:** Somehow, I managed to break the `day_22.js` code. Will get back to this later._ \n\n### Diary\n\n* `day 04:` joined the races, with just 80 hrs of delay 🐌🐌🐌\n* `day 05:` feeling sooo competent 😎\n* `day 06:` made _a lot_ of horrible typos... all the time!\n* `day 07:` met something like never before - but I made it - yay! 🙃.\n* `day 08:` lost 4 hours, sleeping well. Quiz was not too hard, but on part #2,\u003cbr /\u003e\n I got stuck at my _\"super-simple\"_ solution for way too long.\n* `day 09:` I _hate_ numbers - I always did!\n* `day 10:` Almost flunked the part#2, wasting several hours trying to apply a tree traversal\napproach that was inadequate. The right solution was much simpler. But, I still hate numbers. 😝\n* `day 11:` I love simulations! Lost some time because of invalid looping condition (a typo).\n* `day 12:` I was about to go nuts! The puzzle #1 solution worked w example data; but with real data I received:\n_\"Wrong answer! Curiously enough, this is correct answer for somebody else - make sure you\nlogged in with right account!\"_ After losing an insane amount of time, I finally figured out\nthere was a tiny error in my ingenious direction computing ([day_12.1.js](day_12.1.js) line 40,41).\n\u003cbr /\u003eThis clearly shows, how even testing your code won't guarantee it's correct. \n* `day 13:` The first part was simple, but I failed with the second part -\nmy solution worked with sample data but did not reach the end with the actual one.\nFinally, I used an absolutely fantastic solution from another guy (see code), and it still\ntook quite an effort to understand how and why it worked. Btw, my initial code worked\ncorrectly, too, when using reasonable initial time value from that one. 😝\n* `day 14:` Enjoyed that one - except losing about an hour on part#1 because\nof not noticing my typo in looping condition (line 28 of [day_14.js](day_14.js))!\u003cbr /\u003e\nInteresting: the _`algorithm2()`_ in my code would melt down with sample dataset for\nthe puzzle#1, but works fine with the real data ... I wonder if a good generic solution exists?\n* `day 15:` This was an absolutely awesome puzzle! The hardest part was to understand\nthe wording. I was able to code only after executing the solution path on paper! \n* `day 16:` I liked that one! As usual, typos (inside the _regExpr_ - this time),\nwere my worst enemies. 👻 👺 💩\n* `day 17:` That was even better - a simulation in 4-D hyperspace 🌘 👽 🌒 \nis pretty cool - isn't it?\u003cbr /\u003e\nThe hyperspace challenge unveiled only after solving the part #1 (3D)\nand I felt a strong temptation to write a _generalized n-dimensional \nalgorithm_, but it turned out to be a bit too challenging, so I rolled back to fixed dimensions.\n* `day 18:` Nothing particularly hard, but... those damn RegExpr lines -\nI always leave some tiny 🐛🐛🐛 bugs in there - I might need 🐓🐓🐓 an assistance! \n* `day 19:` _No, no, no!_ Writing yet another [yacc](https://en.wikipedia.org/wiki/Yacc)\nfrom the scratch on Sunday morning is just no fun! Could not make the part #2, because my code\nnever choked at recursive rules. 🤡\n* `day 20:` An exciting one! I was sweating blood, working on general solution,\nbefore I got hint, that there is exactly 4 tiles easily recognizable as corners,\nin _the real data_ (not in the example data). Have no time left for the puzzle #2 today. 😑\n\u003cbr /\u003eIt always pays off to take a break from coding and play w data.\n* `day 21:` I took my time with the puzzle text, but just could not fully understand it.\nSo I took a nap instead. After this, everything was so much better.\n* `day 22:` The part #1 was almost trivial, but it really took some time to understand\nthe rules of part #2. Perhaps I should play more cards and code less? 🤔\n* `day 23:` The part #1 was almost trivial, I made lot of stupid mistakes of course.\nI failed to solve the computational complexity problem with #2, though. 🥶\n* `day 24:` A relatively simple simulation, similar to day 19.\nI wasted some time on my hyper-simple coordinates space presentation, which turned out\nto be flawed 😳. Otherwise, it was fun. 🌮🍺\n* `day 25:` Omg... yet another number crunching madness! Painfully, I finally\ncompleted the part #1, only to learn I can't get to part#2 w/o solving all the previous\npuzzles (I still have 2 pending 😝) first.\u003cbr /\u003e\n_**Merry Christmas, everybody!**_ 🌲🌲🌲🌲🌲✨🌲🌲🌲🌲🌲\n\n### Track record\nMy ranking placements and final times for puzzle 1 and 2 by days. The '_%_'\ncolumn shows the ratio of people done w both puzzles, from all participants,\nby the time I made it. Of course the time zone difference gives us\nthe Europeans (and Africans, too) an unfair advantage here. 😜\n\n| day | Rank 1 | Time 1 | Rank 2 | Time 2 | % |\n| ---: | ---: | :---: | ---: | :---: |---: |\n| 25 | 5662 | 04:06:02 |  |  |  |\n| 24 | 3816 | 01:51:21 | 3751 | 03:00:44 | 3 |\n| 23 | 4643 | 03:02:59 |  |  |  |\n| 22 | 4163 | 01:02:30 | 5008 | 04:22:07 | **2** |\n| 21 | 7867 | 08:50:59 | 7895 | 09:35:48 | 6 |\n| 20 | 6655 | 08:15:59 |  |  |  |\n| 19 | 5172 | 04:36:09 | 5753 | 09:28:53 |  |\n| 18 | 4214 | 01:27:38 | 3477 | 01:48:42 | 3 |\n| 17 | 2848 | 01:04:57 | 3667 | 01:50:22 | **2** |\n| 16 | 4950 | 00:49:02 | 3362 | 02:30:14 | **2** |\n| 15 | 6816 | 01:29:30 | 5554 | 01:33:16 | 4 |\n| 14 | 6743 | 01:44:14 | 5484 | 06:36:47 | 4 |\n| 13 | 4840 | 00:23:21 | 8208 | 06:36:47 | 5 |\n| 12 | 7251 | 01:27:40 | 6781 | 02:16:59 | 5 |\n| 11 | 5046 | 00:58:41 | 3947 | 01:18:42 | 3 |\n| 10 | 8294 | 00:40:41 | 8831 | 03:26:43 | 7 |\n| 9 | 5870 | 00:23:56 | 6821 | 00:51:37 | 6 |\n| 8 | 21227 | 04:26:04 | 19390 | 05:28:19 | 17 |\n| 7 | 4964 | 00:55:00 | 5006 | 01:29:10 | 4 |\n| 6 | 5561 | 00:15:15 | 5897 | 00:32:36 | 6 |\n| 5 | **1704** | 00:11:54 | **2684** | 00:22:54 | 7 |\n| 4 | 43747 | 11:32:00 | 35730 | 12:21:18 | |\n| 3 | 68239 | - | 66053 | - | |\n| 2 | 85973 | - | 83496 | -| |\n| 1 | 108496 | - | 101541 | - | |\n\n![](quote.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalango%2Fadventofcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalango%2Fadventofcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalango%2Fadventofcode/lists"}