Medium-EasyRememberSorting & SearchingMultiple Choice
What is the time complexity of Median of Two Sorted Arrays (LC 4)?
Remember — Tests recall of fundamental facts and definitions.
Answer Options
AO(m+n)
BO(log(m+n))
CO(log(m)*log(n))
DO(m*n)
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 31+ more Sorting & Searching questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the Sorting & Searching topic (Algorithms).
More Sorting & Searching Questions
What is the time complexity of binary search on a sorted array of n elements?
EasyWhich sorting algorithm is stable and guarantees O(n log n) worst case?
EasyWhat is the space complexity of mergesort?
EasyWhy does quicksort degrade to O(n²) on already-sorted input with last-element pivot?
Medium-EasyImplement binary search to find the leftmost occurrence of a target.
Medium-Easy