{"id":26956699,"url":"https://github.com/nikoheikkila/roman-numeral-encoder","last_synced_at":"2026-06-25T08:31:24.755Z","repository":{"id":91082010,"uuid":"246673906","full_name":"nikoheikkila/roman-numeral-encoder","owner":"nikoheikkila","description":"Kata: Roman Numerals Encoder","archived":false,"fork":false,"pushed_at":"2020-03-12T06:18:59.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T03:33:11.020Z","etag":null,"topics":["algorithm","go","golang","kata"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/nikoheikkila.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":"2020-03-11T20:31:07.000Z","updated_at":"2023-02-03T21:49:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"829554a2-4c8d-4d16-a7df-12fb84563dae","html_url":"https://github.com/nikoheikkila/roman-numeral-encoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikoheikkila/roman-numeral-encoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Froman-numeral-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Froman-numeral-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Froman-numeral-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Froman-numeral-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikoheikkila","download_url":"https://codeload.github.com/nikoheikkila/roman-numeral-encoder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Froman-numeral-encoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34767542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"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":["algorithm","go","golang","kata"],"created_at":"2025-04-03T03:31:51.327Z","updated_at":"2026-06-25T08:31:24.744Z","avatar_url":"https://github.com/nikoheikkila.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roman Numeral Encoder\n\nThis is a programming Kata taken from [Codewars](https://www.codewars.com/kata/51b62bf6a9c58071c600001b) and implemented in _Golang_.\n\n## Solution\n\nSplit an integer to its sum factors. Then convert each factor to a roman numeral. Finally, concatenate numerals to get the result.\n\n**Example 1: `2020` to Roman:**\n\n```go\nn := 2020\n=   2000 + 20\n=   1000 + 1000 + 20\n=   1000 + 1000 + 10 + 10\n=   {M} + 1000 + 10 + 10\n=   {M} + {M} + 10 + 10\n=   {M} + {M} + {X} + 10\n=   {M, M} + {X, X}\n=   MM + XX\n=   MMXX\n```\n\n**Example 1: `8192` to Roman:**\n\nFollowing example skips some of the trivial steps for brevity's sake.\n\n```go\nn := 8192\n=   8000 + 100 + 90 + 2\n=   {M, M, M, M} + 100 + 90 + 2\n=   {M, M, M, M} + {C} + 90 + 2\n=   {M, M, M, M} + {C} + {XC} + 2\n=   {M, M, M, M} + {C} + {XC} + {II}\n=   MMMM + C + XC + II\n=   MMMMMMMMCXCII\n```\n\nSee [here](encoder/encoder.go) for my complete solution.\n\n## Testing\n\nUse `./test.sh` to run both unit tests and performance benchmarks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoheikkila%2Froman-numeral-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikoheikkila%2Froman-numeral-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoheikkila%2Froman-numeral-encoder/lists"}