What the heck does it mean if an operation is O(log n) ?
What the heck does it mean if an operation is O(log n) ?
In computer science, Big O notation is used to describe the efficiency of an algorithm in terms of time or space complexity as the input size grows. When we say that an operation has a time complexity of $$O(\log n)$$, we mean that the time it takes to complete the operation grows logarithmically with the size of the input $$n$$.
Logarithmic Growth:
Divide and Conquer:
Examples:
junior
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào