Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the runtime complexity of Merge Sort?
Think about how dividing the list and merging affects performance.
Describe the main operation performed in Merge Sort.
Consider what you do to combine the lists.
What is the time complexity of Merge Sort?
Think about how the algorithm divides the input size.
True or False: Merge Sort can sort data without requiring additional memory.
Consider how elements need to be temporarily stored during the merge.
Given two sorted lists A = [5, 10, 20] and B = [2, 5, 15], how would you merge them while accounting for duplicates?
Consider using two pointers to help you move through each list efficiently.
Discuss a method to implement Merge Sort iteratively without recursion.
Think about how you could maintain the state of sorted sublists.
6 more questions in this section. Enroll free to practise them all.
Enroll free