This code is to find a particular element in an sorted array when we do not know the length of the array and are not allowed to use length function. This can be treated as a base code for binary search in an infinite array where we are unaware of the length.
🚀 Feature
binary search without using arr.length using java under GSSOC'22
Have you read the Contributing Guidelines on Pull Requests?
YES
Motivation
(Please outline the motivation for the proposal.)
Pitch
This code is to find a particular element in an sorted array when we do not know the length of the array and are not allowed to use length function. This can be treated as a base code for binary search in an infinite array where we are unaware of the length.