https://github.com/patilyashh/binary-search-
Day 17 of 75 Days C programing challenge || #17 ||
https://github.com/patilyashh/binary-search-
Last synced: 9 months ago
JSON representation
Day 17 of 75 Days C programing challenge || #17 ||
- Host: GitHub
- URL: https://github.com/patilyashh/binary-search-
- Owner: PATILYASHH
- Created: 2024-02-27T17:39:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T17:41:55.000Z (over 2 years ago)
- Last Synced: 2025-01-13T03:33:18.933Z (over 1 year ago)
- Language: C
- Size: 86.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Binary Search Algorithm
This C program implements the binary search algorithm to find a target value in a sorted array.
## How to Use
1. Compile the program using a C compiler such as GCC:
```
gcc binary_search.c -o binary_search
```
2. Run the compiled binary:
```
./binary_search
```
3. Follow the prompts to input the number of elements in the array, the elements themselves (in sorted order), and the target value to search for.
4. The program will output whether the target value was found in the array or not, along with its index if found.
## Program Structure
- `binary_search.c`: Contains the main C code implementing the binary search algorithm.
- `README.md`: This file, providing an overview of the program and instructions for use.
## Contributors
- [ Yash Patil ] - Initial implementation
Feel free to contribute to this project by improving the algorithm or adding features.