{"id":23405117,"url":"https://github.com/francescopaolol/binarysearchdemo","last_synced_at":"2025-07-29T02:04:47.947Z","repository":{"id":209071716,"uuid":"723155405","full_name":"FrancescoPaoloL/BinarySearchDemo","owner":"FrancescoPaoloL","description":"This Python script demonstrates the versatile application of binary search in various scenarios","archived":false,"fork":false,"pushed_at":"2023-11-26T04:00:16.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T12:46:26.827Z","etag":null,"topics":["2d-matrix","peak","python","sorted-arrays","squareroot"],"latest_commit_sha":null,"homepage":"","language":"Python","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/FrancescoPaoloL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-11-24T20:50:07.000Z","updated_at":"2023-11-26T03:45:44.000Z","dependencies_parsed_at":"2025-07-13T12:23:45.288Z","dependency_job_id":"7fb623b5-49d4-454c-8348-13d19d4d4afc","html_url":"https://github.com/FrancescoPaoloL/BinarySearchDemo","commit_stats":null,"previous_names":["francescopaolol/binarysearchdemo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FrancescoPaoloL/BinarySearchDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoPaoloL%2FBinarySearchDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoPaoloL%2FBinarySearchDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoPaoloL%2FBinarySearchDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoPaoloL%2FBinarySearchDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancescoPaoloL","download_url":"https://codeload.github.com/FrancescoPaoloL/BinarySearchDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoPaoloL%2FBinarySearchDemo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"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-29T02:00:12.549Z","response_time":2574,"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":["2d-matrix","peak","python","sorted-arrays","squareroot"],"created_at":"2024-12-22T13:18:17.491Z","updated_at":"2025-07-29T02:04:47.925Z","avatar_url":"https://github.com/FrancescoPaoloL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binary Search Demo\n\nThis Python script demonstrates the versatile application of binary search in various scenarios:\n\n## 1. Finding the Square Root\n   - The script includes a function (`mySqrt`) that utilizes binary search to find the square root of a given number.\n\n## 2. Finding First and Last Occurrence in a Sorted Array\n   - Another function (`find_first_last_occurrence`) employs binary search to find the first and last occurrence of a target element in a sorted array.\n\n## 3. Searching in a 2D Matrix\n   - A function (`search_in_2d_matrix`) applies binary search to determine whether a target value is present in a 2D matrix where each row and each column is sorted.\n\n## 4. Finding the Peak Element in an Array\n   - The script finds the peak element in an array using binary search.\n\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54) \n\n## Languages and Tools\n\u003cp align=\"left\"\u003e \u003ca href=\"https://www.python.org\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg\" alt=\"python\" width=\"40\" height=\"40\"/\u003e \u003c/a\u003e \u003c/p\u003e\n\n## Requirements\n```\nJust Python 3.6.9\n```\n\n## Test Coverage\nTODO\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n\u003chr\u003e\n\n## Connect with me\n\u003cp align=\"left\"\u003e\n\u003ca href=\"https://www.linkedin.com/in/francescopl/\" target=\"blank\"\u003e\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg\" alt=\"francescopaololezza\" height=\"20\" width=\"30\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.kaggle.com/francescopaolol\" target=\"blank\"\u003e\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/kaggle.svg\" alt=\"francescopaololezza\" height=\"20\" width=\"30\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescopaolol%2Fbinarysearchdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescopaolol%2Fbinarysearchdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescopaolol%2Fbinarysearchdemo/lists"}