← Goldman Sachs questions

Find difference between two arrays

Filed under Goldman Sachs

Given two unsorted arrays, compute the difference (arr1 - arr2) and (arr2 - arr1), where the difference contains elements present in the first array but not the second, accounting for element…

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.