Skip to content

melchord/BinarySearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Binary Search

Write a function that takes a sorted array of integers as well as a target integer.
The function should use the Binary Search algorithm to find the target number is 
contained in the array and should return its index if it is, otherwise -1.

Sample input: [0,1,21,33,45,45,61,71,72,73], 33
Sample output: 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages