{"id":22907640,"url":"https://github.com/petertseng/adventofcode-rb-2024","last_synced_at":"2025-04-01T09:16:43.202Z","repository":{"id":266448293,"uuid":"898307431","full_name":"petertseng/adventofcode-rb-2024","owner":"petertseng","description":"Solutions to https://adventofcode.com/2024","archived":false,"fork":false,"pushed_at":"2024-12-26T06:32:57.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T05:15:18.237Z","etag":null,"topics":["advent-of-code","advent-of-code-2024","advent-of-code-2024-ruby","ruby"],"latest_commit_sha":null,"homepage":"https://adventofcode.com/2024","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petertseng.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":"2024-12-04T06:54:32.000Z","updated_at":"2024-12-26T06:33:00.000Z","dependencies_parsed_at":"2024-12-04T10:33:42.288Z","dependency_job_id":"a42b6297-a5be-457e-87b1-6bf0c175b3cf","html_url":"https://github.com/petertseng/adventofcode-rb-2024","commit_stats":null,"previous_names":["petertseng/adventofcode-rb-2024"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petertseng%2Fadventofcode-rb-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petertseng%2Fadventofcode-rb-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petertseng%2Fadventofcode-rb-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petertseng%2Fadventofcode-rb-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petertseng","download_url":"https://codeload.github.com/petertseng/adventofcode-rb-2024/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246612454,"owners_count":20805355,"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":["advent-of-code","advent-of-code-2024","advent-of-code-2024-ruby","ruby"],"created_at":"2024-12-14T03:16:32.206Z","updated_at":"2025-04-01T09:16:43.182Z","avatar_url":"https://github.com/petertseng.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adventofcode-rb-2024\n\nFor the tenth year in a row, it's the time of the year to do [Advent of Code](http://adventofcode.com) again.\n\nThe solutions are written with the following goals, with the most important goal first:\n\n1. **Speed**.\n   Where possible, use efficient algorithms for the problem.\n   Solutions that take more than a second to run are treated with high suspicion.\n   This need not be overdone; micro-optimisation is not necessary.\n2. **Readability**.\n3. **Less is More**.\n   Whenever possible, write less code.\n   Especially prefer not to duplicate code.\n   This helps keeps solutions readable too.\n\nAll solutions are written in Ruby.\nFeatures from 3.0.x will be used, with no regard for compatibility with past versions.\n`Enumerable#to_h` with block is anticipated to be the most likely reason for incompatibility (will make it incompatible with 2.5).\n\n# Input\n\nIn general, all solutions can be invoked in both of the following ways:\n\n* Without command-line arguments, takes input on standard input.\n* With command-line arguments, reads input from the named files (- indicates standard input).\n\nSome may additionally support other ways:\n\n* None yet\n\n# Highlights\n\nFavourite problems:\n\n* None yet.\n\nInteresting approaches:\n\n* None yet.\n\n# Takeaways\n\n* None yet.\n\n# Posting schedule and policy\n\nBefore I post my day N solution, the day N leaderboard **must** be full.\nNo exceptions.\n\nWaiting any longer than that seems generally not useful since at that time discussion starts on [the subreddit](https://www.reddit.com/r/adventofcode) anyway.\n\nSolutions posted will be **cleaned-up** versions of code I use to get leaderboard times (if I even succeed in getting them), rather than the exact code used.\nThis is because leaderboard-seeking code is written for programmer speed (whatever I can come up with in the heat of the moment).\nThis often produces code that does not meet any of the goals of this repository (seen in the introductory paragraph).\n\n# Past solutions\n\nThe [index](https://github.com/petertseng/adventofcode-common/blob/master/index.md) lists all years/languages I've ever done (or will ever do).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetertseng%2Fadventofcode-rb-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetertseng%2Fadventofcode-rb-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetertseng%2Fadventofcode-rb-2024/lists"}