{"id":26154249,"url":"https://github.com/siakhooi/codility-gamers-2021","last_synced_at":"2026-04-29T22:06:40.218Z","repository":{"id":103402004,"uuid":"429747924","full_name":"siakhooi/codility-gamers-2021","owner":"siakhooi","description":"Codility Challenge: Gamer's 2021 (Hard)","archived":false,"fork":false,"pushed_at":"2021-12-19T11:46:50.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T08:23:11.244Z","etag":null,"topics":["codility","codility-challenges","java","junit","maven"],"latest_commit_sha":null,"homepage":"","language":"Java","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/siakhooi.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,"zenodo":null}},"created_at":"2021-11-19T09:56:12.000Z","updated_at":"2021-12-19T11:48:31.000Z","dependencies_parsed_at":"2023-07-03T01:35:58.926Z","dependency_job_id":null,"html_url":"https://github.com/siakhooi/codility-gamers-2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siakhooi/codility-gamers-2021","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siakhooi%2Fcodility-gamers-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siakhooi%2Fcodility-gamers-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siakhooi%2Fcodility-gamers-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siakhooi%2Fcodility-gamers-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siakhooi","download_url":"https://codeload.github.com/siakhooi/codility-gamers-2021/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siakhooi%2Fcodility-gamers-2021/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["codility","codility-challenges","java","junit","maven"],"created_at":"2025-03-11T08:21:59.018Z","updated_at":"2026-04-29T22:06:40.213Z","avatar_url":"https://github.com/siakhooi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codility Challenge: Gamer's 2021\n\n## FillTheGaps\n\n- Difficulty: Hard\n- Given a string consisting of characters 'a', 'b' and/or '?', replace each '?' with 'a' or 'b' so that the longest fragment of the resulting string consisting of equal letters is as short as possible.\n- \u003chttps://app.codility.com/programmers/challenges/gamers_2021/\u003e\n- \u003chttps://app.codility.com/programmers/task/fill_the_gaps/\u003e\n\n## Versions\n\n- Result\n  - `Good`: Correctness 100%, Performance 100%.\n  - `OK`: Correctness 100%, Performance \u003c100%.\n  - `Fail`: Correctness \u003c100%, Performance \u003c100%.\n- File naming convention\n  - Code `A`: `Gamers2021A.java`\n  - etc\n\n### Gold Award\n\n| File | Complexity              | Result | Report                                                                            |\n| ---- | ----------------------- | ------ | --------------------------------------------------------------------------------- |\n| `A`  | `O(N * log(N)) or O(N)` | `Good` | [N7PTWR](https://app.codility.com/cert/view/certN7PTWR-SA8JKZ48PXEHSSSS/details/) |\n\n### Other\n| File | Complexity              | Result | Report                                                                            |\n| ---- | ----------------------- | ------ | --------------------------------------------------------------------------------- |\n| `B`  | `O(N * log(N)) or O(N)` | `Good` | [6WTXMU](https://app.codility.com/demo/results/training6WTXMU-629/) |\n\n\n- Solution provided by Codility is written in Python and using `yield` command which not available in Java. So no java version implemented as it can't be compared fairly.\n- Both `A`, `B` and Codility solutions are same concepts.\n- `A` although earn a Gold award, but actually contains a bug, which failed the following scenario:\n\t- input:\t'`aaaa?bbb?aaa?bbb?aaa?bbb?aaaa`', expected `5` (the program returns 4)\n- `B` is the bug fix version of `A`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiakhooi%2Fcodility-gamers-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiakhooi%2Fcodility-gamers-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiakhooi%2Fcodility-gamers-2021/lists"}