0Which sorting algorithm (in its optimized form, with an early-exit flag) has a best-case time complexity of O(n) when the input array is already sorted?ASelection sortBBubble sortCHeap sortDMerge sort Correct answer: B Join the discussion Report an error Share