{"id":17812348,"url":"https://github.com/nmicht/algorithm-exercises","last_synced_at":"2025-08-01T11:10:06.154Z","repository":{"id":148540369,"uuid":"158491530","full_name":"nmicht/algorithm-exercises","owner":"nmicht","description":"Practicing algorithm exercises","archived":false,"fork":false,"pushed_at":"2020-09-27T02:02:47.000Z","size":286,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T21:45:41.633Z","etag":null,"topics":["algorithm-challenges","algorithm-competitions","algorithms","algorithms-implemented","hackerrank-solutions","interviewbit-solutions","leetcode-solutions"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nmicht.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":"2018-11-21T04:38:36.000Z","updated_at":"2020-09-27T02:02:49.000Z","dependencies_parsed_at":"2023-05-20T11:15:14.859Z","dependency_job_id":null,"html_url":"https://github.com/nmicht/algorithm-exercises","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/nmicht%2Falgorithm-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmicht%2Falgorithm-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmicht%2Falgorithm-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmicht%2Falgorithm-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmicht","download_url":"https://codeload.github.com/nmicht/algorithm-exercises/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246770158,"owners_count":20830820,"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","algorithm-competitions","algorithms","algorithms-implemented","hackerrank-solutions","interviewbit-solutions","leetcode-solutions"],"created_at":"2024-10-27T15:59:09.982Z","updated_at":"2025-04-02T07:21:22.627Z","avatar_url":"https://github.com/nmicht.png","language":"Python","readme":"# Algorithm Exercises\n\nRepository to save all the algorithms that I solved to practice algorithms, but also all the others that I was not able to complete during my time window for this.\n\n## Algorithm Lessons learned\n\n- [Boyer-Moore algorithm](https://en.m.wikipedia.org/wiki/Boyer%E2%80%93Moore_majority_vote_algorithm) to get the majority\n- [Bit xor](https://hackernoon.com/xor-the-magical-bit-wise-operator-24d3012ed821) to cancel same numbers\n- Most significant bit\n- [Dynamic programming](https://en.wikipedia.org/wiki/Dynamic_programming)\n- Sort before doing things\n\n## Language lessons learned\n- JavaScript sort is made for strings, for numbers is required to do a subtraction\n- Python: avoid pop and try to access directly to the element, that improves performance a lot\n- Python: for-in does not include \"end\"\n- Python: can use lambdas to order by object key `myList.sort(key=lambda obj: obj.prop, reverse=False)`\n- Python: for range if the step is not one by one, you have to add it as a third parameter `range(5, 1, -1)`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmicht%2Falgorithm-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmicht%2Falgorithm-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmicht%2Falgorithm-exercises/lists"}