Question: What is the time complexity of merging two sorted arrays of sizes m and n?
Options:
Correct Answer: O(m + n)
Solution:
Merging two sorted arrays takes linear time, O(m + n), as we traverse both arrays.