{"id":18780400,"url":"https://github.com/karan/swift-algorithms","last_synced_at":"2025-07-31T01:04:47.770Z","repository":{"id":65984372,"uuid":"20528014","full_name":"karan/Swift-Algorithms","owner":"karan","description":"Implementation of various algorithms and data structures in Swift.","archived":false,"fork":false,"pushed_at":"2015-12-10T01:10:18.000Z","size":207,"stargazers_count":110,"open_issues_count":1,"forks_count":24,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-26T20:21:43.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/karan.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":"2014-06-05T14:25:05.000Z","updated_at":"2023-08-07T04:52:04.000Z","dependencies_parsed_at":"2023-02-19T18:15:56.376Z","dependency_job_id":null,"html_url":"https://github.com/karan/Swift-Algorithms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karan/Swift-Algorithms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FSwift-Algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FSwift-Algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FSwift-Algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FSwift-Algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karan","download_url":"https://codeload.github.com/karan/Swift-Algorithms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FSwift-Algorithms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267972424,"owners_count":24174373,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T20:26:15.828Z","updated_at":"2025-07-31T01:04:47.726Z","avatar_url":"https://github.com/karan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Swift-Algorithms\n================\n\nImplementation of various algorithms and data structures in Swift.\n\nFeel free to add more implementations!\n\nEach implementation is done in Xcode playground. To view code, either:\n\n1. Clone the repo and import in Xcode, *or*\n\n2. View the .swift file in each .playground folder (on Github)\n\n## Algorithms\n\n### Sorting\n\n[Insertion Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/InsertionSort.playground)\n\n[Selection Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/SelectionSort.playground)\n\n[Bubble Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/BubbleSort.playground)\n\n[Quick Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/QuickSort.playground)\n\n[Merge Sort](https://github.com/karan/Swift-Algorithms/tree/master/sorts/MergeSort.playground)\n\n## Data Structures\n\n[Stack](https://github.com/karan/Swift-Algorithms/tree/master/data_structures/Stack.playground)\n\n[Queue](https://github.com/karan/Swift-Algorithms/tree/master/data_structures/Queue.playground)\n\n## Prime Numbers\n\n[Sieve of Eratosthenes](https://github.com/karan/Swift-Algorithms/tree/master/other/SieveOfEratosthenes.playground)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Fswift-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaran%2Fswift-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Fswift-algorithms/lists"}