{"id":15037939,"url":"https://github.com/leadstar116/swift_binary_search_algorithm","last_synced_at":"2026-02-03T19:01:23.591Z","repository":{"id":110643982,"uuid":"230843968","full_name":"leadstar116/swift_binary_search_algorithm","owner":"leadstar116","description":"Implement binary search algorithm in swift","archived":false,"fork":false,"pushed_at":"2020-06-27T14:29:52.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T07:04:14.526Z","etag":null,"topics":["algorithm","binary-search","swift","swift4"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/leadstar116.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":"2019-12-30T03:55:09.000Z","updated_at":"2020-06-27T14:29:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"68012476-de08-42c5-92d7-adc465f04000","html_url":"https://github.com/leadstar116/swift_binary_search_algorithm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leadstar116/swift_binary_search_algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadstar116%2Fswift_binary_search_algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadstar116%2Fswift_binary_search_algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadstar116%2Fswift_binary_search_algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadstar116%2Fswift_binary_search_algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leadstar116","download_url":"https://codeload.github.com/leadstar116/swift_binary_search_algorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadstar116%2Fswift_binary_search_algorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithm","binary-search","swift","swift4"],"created_at":"2024-09-24T20:36:22.486Z","updated_at":"2026-02-03T19:01:23.571Z","avatar_url":"https://github.com/leadstar116.png","language":"Swift","readme":"# Description\nImplement binary search algorithm in swift\n\n\u003ch2\u003eBasic knowledge for binary search:\u003c/h2\u003e\n\u003cp\u003e\u003cb\u003eBinary search works on sorted arrays. \u003c/b\u003e\u003c/p\u003e\n\u003cp\u003eBinary search begins by comparing an element in the middle of the array with the target value. \u003c/p\u003e\n\u003cp\u003eIf the target value matches the element, its position in the array is returned. \u003c/p\u003e\n\u003cp\u003eIf the target value is less than the element, the search continues in the lower half of the array. \u003c/p\u003e\n\u003cp\u003eIf the target value is greater than the element, the search continues in the upper half of the array. \u003c/p\u003e\n\u003cp\u003eBy doing this, the algorithm eliminates the half in which the target value cannot lie in each iteration.\u003c/p\u003e\n\n\u003cimg src=\"https://github.com/leadstar116/swift_binary_search_algorithm/blob/master/binary-search-diagram.jpg?raw=true\"/\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleadstar116%2Fswift_binary_search_algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleadstar116%2Fswift_binary_search_algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleadstar116%2Fswift_binary_search_algorithm/lists"}