{"id":17352834,"url":"https://github.com/gavincyi/programmingcompetitiontester","last_synced_at":"2025-06-12T02:34:05.358Z","repository":{"id":96482069,"uuid":"83315568","full_name":"gavincyi/ProgrammingCompetitionTester","owner":"gavincyi","description":"A header-only library of a testing machine of generating randomized arrays. For programming competition or coding interview use.","archived":false,"fork":false,"pushed_at":"2017-02-28T02:18:26.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T17:24:46.464Z","etag":null,"topics":["programming-challenge","programming-contests"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/gavincyi.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":"2017-02-27T13:52:35.000Z","updated_at":"2017-10-25T12:34:27.000Z","dependencies_parsed_at":"2023-04-04T14:33:33.946Z","dependency_job_id":null,"html_url":"https://github.com/gavincyi/ProgrammingCompetitionTester","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/gavincyi%2FProgrammingCompetitionTester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincyi%2FProgrammingCompetitionTester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincyi%2FProgrammingCompetitionTester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincyi%2FProgrammingCompetitionTester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavincyi","download_url":"https://codeload.github.com/gavincyi/ProgrammingCompetitionTester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245850360,"owners_count":20682647,"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":["programming-challenge","programming-contests"],"created_at":"2024-10-15T17:14:48.283Z","updated_at":"2025-03-27T13:13:53.337Z","avatar_url":"https://github.com/gavincyi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Programming Competition Tester\n\nThe project is a header-only library of a testing machine of generating randomized arrays.\n\nThe objective of the project is to check the values generated from different algorithms.\n\n1. Generate a random vector.\n2. Run the algorithms with the provided test cases.\n3. Check if all values from algorithms are the same on randomized arrays.\n\n## Why I start this project?\n\nI participated a few programming contests and coding interviews. I find sometimes\nit is not an obstacle to write a solution, but to write good test cases to confirm\nthe solution correct on \n\n1. Most cases, and\n2. The boundary cases.\n\nSo I created this project on the way of my coding interview. (But after writing it, I\nfound I was incorrect on one of the questions in the last 15 minutes. Ironic.) Hope it\ncan benefit to other developers, especially those participating in coding interview in\nCodility. I found most Codility platform coding interviews have only one test case and\nyou can never ensure you are absolutely correct.\n\n## How to use?\n\n1. First create your own project (quickly during your test/interview/contest/whatever1)\nand import the header \"TestMachine.hpp\".\n\n2. Create the machine by the following initial parameters.\n\n    i) minSize, maxSize - The minimum and maximum size of the randomized arrays\n\n    ii) minRange, maxRange - The minimum and maximum range of each element in the array\n\n3. Insert your test cases by method \"InsertTestCase\".\n\n4. Insert your algorithm by method \"InsertAlgorithm\"\n\n5. Call method Run to run it!\n\n## Questions\n\nIf you have any feedback (especially thank-you note if you can win an offer), please email me\nby gavincyi at gmail dot com. Good luck and have fun! :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavincyi%2Fprogrammingcompetitiontester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavincyi%2Fprogrammingcompetitiontester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavincyi%2Fprogrammingcompetitiontester/lists"}