Binary search finds an insertion position in a sorted array in O(log n). Why can the comp…

from Sorting and searching
Node 24 intermediate 1 min

Binary search finds an insertion position in a sorted array in O(log n). Why can the complete insertion still be O(n)?

Report an error