Question DSA-SRCH-0073
HardWhat is the time complexity of the median of two sorted arrays using the partition method?
- A.
O(log(m + n)) only if equal sizes
- B.
O(mn)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Searching and Binary Search question
What is the time complexity of the median of two sorted arrays using the partition method?
O(log(m + n)) only if equal sizes
O(mn)
Sign up free to see the answer and a step-by-step explanation.
O(m + n)
O(log min(m, n))