{"id":15667746,"url":"https://github.com/holsee/matchsticks","last_synced_at":"2025-03-30T04:26:37.781Z","repository":{"id":68408964,"uuid":"138586446","full_name":"holsee/matchsticks","owner":"holsee","description":"matchsticks kata","archived":false,"fork":false,"pushed_at":"2018-06-28T10:06:34.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T06:44:39.232Z","etag":null,"topics":["elixir","kata"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/holsee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-25T11:34:58.000Z","updated_at":"2018-06-28T10:06:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e6cd78d-6158-4cd5-9edf-555a26ae0391","html_url":"https://github.com/holsee/matchsticks","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/holsee%2Fmatchsticks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fmatchsticks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fmatchsticks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fmatchsticks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holsee","download_url":"https://codeload.github.com/holsee/matchsticks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277289,"owners_count":20751544,"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":["elixir","kata"],"created_at":"2024-10-03T14:05:11.054Z","updated_at":"2025-03-30T04:26:37.758Z","avatar_url":"https://github.com/holsee.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matchsticks Kata\n\nWrite a function that will calculate the number of boxes necessary to accommodate some matchsticks.\n\n* It returns a map with the number of boxes necessary for each type of box.\n* The factory has three types of boxes: the big ones hold fifty matchsticks, the medium ones hold twenty, and the small ones hold five.\n* The boxes can't have fewer matchstick that they can hold; they must be full.\n* The returning map should contain the remaining matchsticks.\n\nIt should work like this:\n\n``` elixir\niex\u003e Matchsticks.boxes(98)\n%{big: 1, medium: 2, remaining_matchsticks: 3, small: 1}\n\niex\u003e Matchsticks.boxes(39)\n%{big: 0, medium: 1, remaining_matchsticks: 4, small: 3}\n```\n\n## Elixir Solution\n\nCompile and Run Tests\n```\nmix do deps.get, compile\nmix test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholsee%2Fmatchsticks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholsee%2Fmatchsticks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholsee%2Fmatchsticks/lists"}