Skip to content

Quick binary search implementation for a data structures refresher

Notifications You must be signed in to change notification settings

migrepereira/Binary-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Binary-Search

Quick binary search implementation for a data structures refresher

This program utilizes one method- binarySearch(int[] a,int x) to implement a binary search. The method takes in an array "a" and an integer value "x." The method searches the array "a" for the value "x."

The main method passes an array and a value into the method and then prints the result (the index of the value if it is found, or -1 if it is not found) to the console.

About

Quick binary search implementation for a data structures refresher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages