{"id":21699888,"url":"https://github.com/jonasraoni/codility","last_synced_at":"2025-04-12T13:22:18.357Z","repository":{"id":38996370,"uuid":"122646269","full_name":"jonasraoni/codility","owner":"jonasraoni","description":"My solutions to exercises and tests at http://codility.com.","archived":false,"fork":false,"pushed_at":"2021-12-22T18:13:43.000Z","size":37,"stargazers_count":115,"open_issues_count":0,"forks_count":80,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T08:06:45.781Z","etag":null,"topics":["algorithm-challenges","algorithms","algorithms-and-data-structures","algorithms-csharp","codility","codility-100","codility-challenges","codility-csharp","codility-exercises","codility-lessons","codility-lessons-exercises","codility-solutions","codility-training","competitive-programming","csharp"],"latest_commit_sha":null,"homepage":"http://raoni.org/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonasraoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-23T16:35:24.000Z","updated_at":"2025-01-06T01:54:51.000Z","dependencies_parsed_at":"2022-08-09T07:17:55.923Z","dependency_job_id":null,"html_url":"https://github.com/jonasraoni/codility","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/jonasraoni%2Fcodility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fcodility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fcodility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fcodility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonasraoni","download_url":"https://codeload.github.com/jonasraoni/codility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571939,"owners_count":21126548,"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":["algorithm-challenges","algorithms","algorithms-and-data-structures","algorithms-csharp","codility","codility-100","codility-challenges","codility-csharp","codility-exercises","codility-lessons","codility-lessons-exercises","codility-solutions","codility-training","competitive-programming","csharp"],"created_at":"2024-11-25T20:11:56.661Z","updated_at":"2025-04-12T13:22:18.335Z","avatar_url":"https://github.com/jonasraoni.png","language":"C#","readme":"# C# Codility Solutions\n-----------------\n\nMy C# solutions to the Codility tasks at https://codility.com/programmers/lessons/\n\nAlmost all of the tasks were straightforward and the available time was more than enough, but few took me more than the 120min to reach 100% ._.\n\nThese are my own implementations. As I enjoy small and concise codes, whatever doesn't fit in this rule means that I had problems. Until now, there's one code in this category :)\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 1 - Iterations\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eBinaryGap\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%201%20-%20Iterations/BinaryGap.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%201%20-%20Iterations/BinaryGap.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 2 - Arrays\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eOddOccurrencesInArray\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%202%20-%20Arrays/OddOccurrencesInArray.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%202%20-%20Arrays/OddOccurrencesInArray.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eCyclicRotation\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%202%20-%20Arrays/CyclicRotation.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%202%20-%20Arrays/CyclicRotation.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 3 - Time Complexity\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003ePermMissingElem\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%203%20-%20Time%20Complexity/PermMissingElem.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%203%20-%20Time%20Complexity/PermMissingElem.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eFrogJmp\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%203%20-%20Time%20Complexity/FrogJmp.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%203%20-%20Time%20Complexity/FrogJmp.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eTapeEquilibrium\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%203%20-%20Time%20Complexity/TapeEquilibrium.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%203%20-%20Time%20Complexity/TapeEquilibrium.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 4 - Counting Elements\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMissingInteger\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/MissingInteger.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/MissingInteger.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003ePermCheck\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/PermCheck.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/PermCheck.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eFrogRiverOne\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/FrogRiverOne.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/FrogRiverOne.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMaxCounters\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/MaxCounters.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%204%20-%20Counting%20Elements/MaxCounters.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 5 - Prefix Sums\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003ePassingCars\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/PassingCars.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/PassingCars.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eCountDiv\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/CountDiv.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/CountDiv.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMinAvgTwoSlice\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/MinAvgTwoSlice.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/MinAvgTwoSlice.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eGenomicRangeQuery\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/GenomicRangeQuery.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%205%20-%20Prefix%20Sums/GenomicRangeQuery.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 6 - Sorting\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eDistinct\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/Distinct.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/Distinct.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMaxProductOfThree\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/MaxProductOfThree.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/MaxProductOfThree.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eTriangle\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/Triangle.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/Triangle.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eNumberOfDiscIntersections\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/NumberOfDiscIntersections.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%206%20-%20Sorting/NumberOfDiscIntersections.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 7 - Stacks and Queues\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eBrackets\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/Brackets.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/Brackets.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eFish\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/Fish.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/Fish.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eStoneWall\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/StoneWall.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/StoneWall.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eNesting\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/Nesting.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%207%20-%20Stacks%20and%20Queues/Nesting.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n     \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 8 - Leader\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eEquiLeader\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%208%20-%20Leader/EquiLeader.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%208%20-%20Leader/EquiLeader.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eDominator\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%208%20-%20Leader/Dominator.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%208%20-%20Leader/Dominator.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 9 - Maximum slice problem\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMaxSliceSum\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%209%20-%20Maximum%20slice%20problem/MaxSliceSum.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%209%20-%20Maximum%20slice%20problem/MaxSliceSum.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMaxProfit\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%209%20-%20Maximum%20slice%20problem/MaxProfit.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%209%20-%20Maximum%20slice%20problem/MaxProfit.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMaxDoubleSliceSum\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%209%20-%20Maximum%20slice%20problem/MaxDoubleSliceSum.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%209%20-%20Maximum%20slice%20problem/MaxDoubleSliceSum.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 10 - Prime and composite numbers\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eMinPerimeterRectangle\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%2010%20-%20Prime%20and%20composite%20numbers/MinPerimeterRectangle.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%2010%20-%20Prime%20and%20composite%20numbers/MinPerimeterRectangle.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eCountFactors\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%2010%20-%20Prime%20and%20composite%20numbers/CountFactors.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%2010%20-%20Prime%20and%20composite%20numbers/CountFactors.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eLesson 11 - Sieve of Eratosthenes\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eCountSemiprimes\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%2011%20-%20Sieve%20of%20Eratosthenes/CountSemiprimes.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Lesson%2011%20-%20Sieve%20of%20Eratosthenes/CountSemiprimes.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd colspan=\"3\"\u003e\u003ch3\u003eOthers\u003c/h3\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eFindTime\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Miscellaneous/find-time.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Miscellaneous/find-time.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eSortingGroups\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Miscellaneous/sorting-groups.md\"\u003eProblem Statement\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"Miscellaneous/sorting-groups.cs\"\u003eSolution\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasraoni%2Fcodility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasraoni%2Fcodility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasraoni%2Fcodility/lists"}