palsubho801-create/Beginner-Tasks-Repo

Implement a Binary Search Function in C

オープン

#23 opened on 2025/10/16

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C (4 件のフォーク)auto 404
hacktoberfest

Repository metrics

Stars
 (0 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Create a new file named 'binary_search.c' that implements the Binary Search algorithm.

Requirements:

  1. The function must assume the input array is already sorted.
  2. It should return the index of the target element if found, or -1 otherwise.
  3. Include a main function to test the search on a hardcoded sorted array.

コントリビューターガイド