Medium · O(n log n)
Merge Sort quiz
Pick an answer to see whether it's right, and why. Nothing is saved or sent.
Question 1 of 10
- Question 1: current
- Question 2: not answered yet
- Question 3: not answered yet
- Question 4: not answered yet
- Question 5: not answered yet
- Question 6: not answered yet
- Question 7: not answered yet
- Question 8: not answered yet
- Question 9: not answered yet
- Question 10: not answered yet
mergeSort runs on [38, 27, 43, 3, 9, 82, 10], seven values. The code sets mid = lo + Math.floor((hi - lo) / 2). Which two halves does the first split make?