Leetcode and GFG
-
Notifications
You must be signed in to change notification settings - Fork 0
In binary search, recursion is used to repeatedly divide a sorted array into halves until the target value is found. The algorithm compares the middle element to the target, then recursively searches either the left or right half depending on the comparison, reducing the search space efficiently.
vishalku03/Binary_search
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
In binary search, recursion is used to repeatedly divide a sorted array into halves until the target value is found. The algorithm compares the middle element to the target, then recursively searches either the left or right half depending on the comparison, reducing the search space efficiently.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published