← Goldman Sachs questions
CodingReported in a candidate post, Feb 2022

Median of two sorted arrays and loop length in array

Filed under Goldman Sachs

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. Additionally, consider how to find a cycle length where array elements represent next…

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 Goldman Sachs questions

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