hacktoberfest
仓库指标
- 星标
- (0 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Create a new file named 'binary_search.c' that implements the Binary Search algorithm.
Requirements:
- The function must assume the input array is already sorted.
- It should return the index of the target element if found, or
-1otherwise. - Include a
mainfunction to test the search on a hardcoded sorted array.