easyDSA

Binary Search

Implement binary search to find target in sorted array.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: [1,2,3,4],3

Expected: 2