{"id":13725268,"url":"https://github.com/anthonywritescode/aoc2019","last_synced_at":"2025-05-07T19:33:38.472Z","repository":{"id":36439195,"uuid":"224527586","full_name":"anthonywritescode/aoc2019","owner":"anthonywritescode","description":"https://adventofcode.com/2019","archived":true,"fork":false,"pushed_at":"2021-10-18T23:46:58.000Z","size":282,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T01:27:25.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonywritescode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-27T22:29:37.000Z","updated_at":"2023-01-28T05:53:23.000Z","dependencies_parsed_at":"2022-08-18T00:45:28.417Z","dependency_job_id":null,"html_url":"https://github.com/anthonywritescode/aoc2019","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Faoc2019","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Faoc2019/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Faoc2019/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Faoc2019/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonywritescode","download_url":"https://codeload.github.com/anthonywritescode/aoc2019/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224645293,"owners_count":17346113,"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","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-08-03T01:02:17.776Z","updated_at":"2024-11-14T15:31:05.037Z","avatar_url":"https://github.com/anthonywritescode.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/anthonywritescode/aoc2019/master.svg)](https://results.pre-commit.ci/latest/github/anthonywritescode/aoc2019/master)\n\nadvent of code 2019\n===================\n\nhttps://adventofcode.com/2019\n\n### stream / youtube\n\n- [Streamed daily on twitch](https://twitch.tv/anthonywritescode)\n- [Uploaded to youtube afterwards](https://www.youtube.com/watch?v=YU3l-0dHTjs\u0026list=PLWBKAf81pmOZuuQiuOT4Ag-yeTfZ9cN3_)\n\n### about\n\nfor 2019 I'm trying to implement each day in a different language:\n\n- day1: c++\n- day2: c, javascript (part 1 also in sqlite)\n- day3: bash\n- day4: java (drunk), sqlite (sober)\n- day5: rust, sqlite, javascript\n- day6: perl\n- day7: javascript\n- day8: intcode (part1), lua (part2)\n- day9: nim, sqlite\n- day10: powershell\n- day11: swift\n- day12: kotlin\n- day13: ruby\n- day14: python0\n- day15: go\n- day16: crystal\n- day17: php\n\n### timing\n\n- comparing to these numbers isn't necessarily useful\n- normalize your timing to day 1 part 1 and compare\n- alternate implementations are listed in parens\n- these timings are very non-scientific (sample size 1)\n\n```console\n$ find -maxdepth 1 -type d -name 'day*' -not -name day0 | sort | xargs --replace bash -xc 'python {}/part1.py {}/input.txt; python {}/part2.py {}/input.txt'\n+ python day01/part1.py day01/input.txt\n3426455\n\u003e 84 μs (original)\n3426455\n\u003e 67 μs (oneline)\n+ python day01/part2.py day01/input.txt\n5136807\n\u003e 636 μs (original)\n5136807\n\u003e 677 μs (recursive)\n+ python day02/part1.py day02/input.txt\n6730673\n\u003e 99 μs\n+ python day02/part2.py day02/input.txt\n3749\n\u003e 90734 μs\n+ python day03/part1.py day03/input.txt\n225\n\u003e 276 ms (original)\n225\n\u003e 266 ms (vector collision)\n+ python day03/part2.py day03/input.txt\n35194\n\u003e 352 ms\n+ python day04/part1.py day04/input.txt\n1929\n\u003e 646 ms\n+ python day04/part2.py day04/input.txt\n1306\n\u003e 634 ms\n+ python day05/part1.py day05/input.txt\n0\n0\n0\n0\n0\n0\n0\n0\n0\n16574641\n\u003e 383 μs\n$ python day05/part2.py day05/input.txt\n15163975\n\u003e 439 μs\n+ python day06/part1.py day06/input.txt\n147223\n\u003e 32471 μs (original)\n147223\n\u003e 1306 μs (memoized)\n+ python day06/part2.py day06/input.txt\n340\n\u003e 759 μs\n+ python day07/part1.py day07/input.txt\n199988\n\u003e 9347 μs\n+ python day07/part2.py day07/input.txt\n17519904\n\u003e 31611 μs\n+ python day08/part1.py day08/input.txt\n2520\n\u003e 143 μs\n+ python day08/part2.py day08/input.txt\n1    1111  11    11 1   1\n1    1    1  1    1 1   1\n1    111  1       1  1 1\n1    1    1 11    1   1\n1    1    1  1 1  1   1\n1111 1111  111  11    1\n\u003e 1732 μs\n+ python day09/part1.py day09/input.txt\n2932210790\n\u003e 924 μs\n+ python day09/part2.py day09/input.txt\n73144\n\u003e 958 ms\n+ python day10/part1.py day10/input.txt\n267\n\u003e 325 ms\n+ python day10/part2.py day10/input.txt\n1309\n\u003e 5190 μs\n+ python day11/part1.py day11/input.txt\n2226\n\u003e 230 ms\npython day11/part2.py day11/input.txt\n #  # ###   ##  #    #### #  # #    ####\n #  # #  # #  # #       # # #  #    #\n #### ###  #    #      #  ##   #    ###\n #  # #  # # ## #     #   # #  #    #\n #  # #  # #  # #    #    # #  #    #\n #  # ###   ### #### #### #  # #### #\n\u003e 21650 μs\n+ python day12/part1.py day12/input.txt\n5937\n\u003e 42334 μs\n+ python day12/part2.py day12/input.txt\n376203951569712\n\u003e 11835 ms\n+ python day13/part1.py day13/input.txt\n326\n\u003e 38577 μs\n+ python day13/part2.py day13/input.txt\n15988\n\u003e 2008 ms\n+ python day14/part1.py day14/input.txt\n178154\n\u003e 1995 μs\n+ python day14/part2.py day14/input.txt\n6226152\n\u003e 434 ms\n+ python day15/part1.py day15/input.txt\n294\n\u003e 142 ms\n+ python day15/part2.py day15/input.txt\n388\n\u003e 188 ms\n+ python day16/part1.py day16/input.txt\n85726502\n\u003e 13066 ms (original)\n85726502\n\u003e 6211 ms (optimization 1)\n85726502\n\u003e 4690 ms (optimization 2)\n85726502\n\u003e 4591 ms (optimization 3)\n85726502\n+ python day16/part2.py day16/input.txt\n92768399\n\u003e 19313 ms\n+ python day17/part1.py day17/input.txt\n3192\n\u003e 72921 μs\n+ python day17/part2.py day17/input.txt\n684691\n\u003e 171 ms\n+ python day18/part1.py day18/input.txt\n4544\n\u003e 6940 ms\n+ python day18/part2.py day18/input.txt\n1692\n\u003e 2064 ms\n+ python day19/part1.py day19/input.txt\n173\n\u003e 2264 ms\n+ python day19/part2.py day19/input.txt\n6671097\n\u003e 8900 ms\n+ python day20/part1.py day20/input.txt\n588\n\u003e 17989 μs\n+ python day21/part1.py day21/input.txt\nInput instructions:\n\nWalking...\n\n19355862\n\u003e 108 ms\n+ python day21/part2.py day21/input.txt\nInput instructions:\n\nRunning...\n\n1140470745\n\u003e 2234 ms\n+ python day22/part1.py day22/input.txt\n8379\n\u003e 121 ms (original)\n8379\n\u003e 93 μs (faster)\n+ python3 day22/part2.py day22/input.txt\n96959315590030\n\u003e 311 μs (original)\n+ python3 day23/part1.py input.txt\n22134\n\u003e 41540 μs\n+ python3 day23/part2.py input.txt\n16084\n\u003e 605 ms\n+ python3 day24/part1.py input.txt\n18401265\n\u003e 4358 μs\n+ python3 day24/part2.py input.txt\n2078\n\u003e 930 ms\n+ python3 day25/part1.py day25/input.txt\n\"Oh, hello! You should be able to get in by typing 2228740 on the keypad at the main airlock.\"\n\u003e 5779 ms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonywritescode%2Faoc2019","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonywritescode%2Faoc2019","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonywritescode%2Faoc2019/lists"}