SQL queries and min/max in single iteration
Filed under Goldman Sachs
The question
Write SQL queries and write code to find both the largest and smallest element in an array in a single iteration.
No write-up yet. Related questions below have one.
Related Goldman Sachs questions
Collected from public candidate posts and coding forums. Updated Nov 2026.