Given a sorted array of unknown size (infinite) and a target element, find the position of the target. You cannot use `length` property of the array.
{
"arr": [
3,
5,
7,
9,
10,
90,
100,
130,
140,
160,
170
],
"target": 10
}4{
"arr": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"target": 1
}0{
"arr": [
2,
4,
6,
8,
10,
12,
14
],
"target": 15
}-1Sign in to Run Code and Submit