Answer :
Answer:
The complexity will be O((3/2)^N).
Explanation:
Notice that, in each step we do size operations and our size will gets multiplied by 3/2. If we do this N times, in total roughly we will do (3/2)^(N+1) operations.
Answer:
The complexity will be O((3/2)^N).
Explanation:
Notice that, in each step we do size operations and our size will gets multiplied by 3/2. If we do this N times, in total roughly we will do (3/2)^(N+1) operations.