Answer:
int j = 1; j < array.length; j =j *2
Step-by-step explanation:
j=j*2 loops have O(logn) so the running time of algorithm is O(logn).
5.8m questions
7.6m answers