Merge sort time complexity
- A
O(n)
- B
O(log n)
- Ccheck_circle
O(n log n)
- D
O(n²)
Explanation
Divide and conquer: log n levels × n work per level.
AP Computer Science A· difficulty 4/5
Merge sort time complexity
O(n)
O(log n)
O(n log n)
O(n²)
Explanation
Divide and conquer: log n levels × n work per level.
Want 10 more like this — adaptive to your weak spots?
How many iterations occur before the loop ends?…
chevron_rightBinary search has time complexity…
chevron_rightPerforming iterative binary search for the value 17 in the sorted array shown, how many <codemid</code values are computed (i.e., how many loop iterations occur…
chevron_right