## Question 1 Given the below intervals, find the correct output after merging the overlapping intervals. [ [1, 6], [2, 4] ] ### Options 1. [ [2, 4] ] Incorrect ---------------------------- 2. [ [1, 6] ] Correct [1, 6], [2, 4] are overlapping. Merge them into one interval [1, 6]. ---------------------------- 3. [ [1, 6], [2, 4] ] Incorrect ---------------------------- 4. [ [2, 4], [1, 6] ] Incorrect ---------------------------- --------------------------------------------- ## Question 2 Given the below intervals, find the correct output after merging the overlapping intervals. [ [1, 8] ] ### Options 1. [ [1, 5] ] Incorrect ---------------------------- 2. [ [1, 6] ] Incorrect ---------------------------- 3. [ [1, 7] ] Incorrect ---------------------------- 4. [ [1, 8] ] Correct We only have a single interval, so no merging is required. ---------------------------- --------------------------------------------- ## Question 3 Given the below intervals, find the correct output after merging the overlapping intervals. [ [2, 9], [3, 5], [4, 8] ] ### Options 1. [ [2, 9] ] Correct [2, 9], [3, 5], [4, 8] are overlapping. Merge them into one interval [2, 9]. ---------------------------- 2. [ [5, 5] ] Incorrect ---------------------------- 3. [ [4, 8] ] Incorrect ---------------------------- 4. [ [2, 9], [3, 5], [4, 8] ] Incorrect ---------------------------- --------------------------------------------- ## Question 4 Given the below intervals, find the correct output after merging the overlapping intervals. [ [2, 4], [3, 5], [4, 5], [6, 10], [12, 14] ] ### Options 1. [ [2, 5], [6, 10] ] Incorrect ---------------------------- 2. [ [2, 5], [6, 10], [12, 14] ] Correct Intervals [2, 4], [3, 5], [4, 5] are overlapping. Merge them into one interval [2, 5]. ---------------------------- 3. [ [6, 10], [12, 14] ] Incorrect ---------------------------- 4. [ [2, 5], [12, 14] ] Incorrect ---------------------------- ---------------------------------------------