{"id":27289250,"url":"https://github.com/mgduda/interval-division-problem","last_synced_at":"2025-06-28T12:35:19.995Z","repository":{"id":69539047,"uuid":"140226349","full_name":"mgduda/Interval-Division-problem","owner":"mgduda","description":"A small programming problem, which asks for an efficient method for dividing one time interval by another.","archived":false,"fork":false,"pushed_at":"2018-07-09T21:41:06.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:13:54.834Z","etag":null,"topics":[],"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/mgduda.png","metadata":{"files":{"readme":"README","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":"2018-07-09T03:24:57.000Z","updated_at":"2018-07-09T21:41:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a69cba9-5a49-4047-9667-a40a67c8b4b9","html_url":"https://github.com/mgduda/Interval-Division-problem","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/mgduda%2FInterval-Division-problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2FInterval-Division-problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2FInterval-Division-problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2FInterval-Division-problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgduda","download_url":"https://codeload.github.com/mgduda/Interval-Division-problem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480427,"owners_count":21110937,"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":[],"created_at":"2025-04-11T21:13:54.017Z","updated_at":"2025-04-11T21:13:55.418Z","avatar_url":"https://github.com/mgduda.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"The idea of this exercise is to implement an efficient routine for dividing one\ntime interval by another, with the restriction that the only operations that may\nbe performed on the intervals are addition, subtraction, and multiplication by\nan integer. The time intervals themselves are represented by a TimeInterval\nclass, which may not be modified.\n\nWe're looking for an implementation of the \"divide(...)\" function in the\ninterval_tests.cpp file, along with a set of tests to verify the correctness of\nthe divide(...) function. The tests may be implemented directly in the main\nfunction in the interval_tests.cpp file or in their own functions.\n\nComments in the divide(...) function should be sufficient to convince a code\nreviewer that the function is correct for all possible inputs.\n\nAdditionally, the method used to implement interval division in the divide(...)\nfunction should be as algorithmically efficient as possible. In climate\nsimulations, intervals as large as several millenia may be involved, and in\nweather research, intervals as small as a fraction of a second are frequently\nused.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgduda%2Finterval-division-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgduda%2Finterval-division-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgduda%2Finterval-division-problem/lists"}