Skip to content

This project implements a simple binary search algorithm, where the program randomly selects a number between 1 and "n" and tries to find it by dividing the range in half.

License

Notifications You must be signed in to change notification settings

Caio-Rodrigues-Carneiro/Binary-Search-Algorithm-Test-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Binary Search Algorithm in Python

This project is a small Python script that demonstrates the operation of the binary search algorithm to find a randomly generated number between 1 and n.

How it Works:

  • The user provides the maximum value n.
  • The program generates a random number between 1 and n.
  • It then uses binary search to find the number in a few attempts.

About

This project implements a simple binary search algorithm, where the program randomly selects a number between 1 and "n" and tries to find it by dividing the range in half.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published