

InterviewSolution
Saved Bookmarks
1. |
If for an algorithm time complexity is given by O(log2n) then complexity will be ___________(a) constant(b) polynomial(c) exponential(d) none of the mentionedThis question was addressed to me during an interview.I need to ask this question from Algorithms in section Algorithms of Discrete Mathematics |
Answer» RIGHT choice is (d) none of the mentioned The explanation is: The GROWTH RATE of that function will be LOGARITHMIC THEREFORE complexity will be logarithmic. |
|