retagged by
417 views

1 Answer

Best answer
2 votes
2 votes
When size of array is not known : Then Move Twice  from state element location to . If you find # then success if not found then repeate that step. [we are working on indexes so no need of sorting]

it will take O(logn)
selected by
Answer:

Related questions

1 votes
1 votes
1 answer
1
Hradesh patel asked Jan 27, 2017
399 views
plz explain ?? i got O(nlogn)
2 votes
2 votes
1 answer
2
5 votes
5 votes
2 answers
3
Aboveallplayer asked Jan 15, 2017
1,574 views
int x=0;int A(n){ statement //takes O(1) time if(n==1) return 1; else { $X+=8.A\left ( \frac{n}{2}\right )+n^3$; } return X;}What is the time com...
0 votes
0 votes
3 answers
4
monty asked Dec 29, 2016
316 views