Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the merge operation do?
Think about the ordered form of both lists.
What is the time complexity of the merge operation?
Consider the sizes of both lists.
What is the overall complexity of merge sort?
Consider how it divides the input.
The merge operation requires how much additional space?
Think about how data is transferred.
Given two sorted lists A = [1, 3, 5] and B = [2, 4, 6], describe how to merge them without duplicates.
Think about how you can ensure that duplicates are only included once.
Discuss why merge sort's auxiliary space usage may be a drawback in certain applications.
Consider environments with tight resource constraints.
5 more questions in this section. Enroll free to practise them all.
Enroll free