← Amazon questions
CodingReported in a candidate post, Jul 2025

Median of two sorted arrays

Filed under Amazon · Also reported at Adobe, AppViewX, Fab.com, Informatica, Intuit, Kempston, LinkedIn, OLA and 5 more

Given two sorted arrays nums1 and nums2 of size m and n, return the median of the two sorted arrays. The overall run time complexity should be O(log(m+n)).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.