← Goldman Sachs questions

Reverse Linked List and Max Average Subset

Filed under Goldman Sachs

Part 1: Given the head of a singly linked list, reverse the list, and return the reversed list. Part 2: Find the maximum average of a subset (or subarray) of a given array, handling both cases with…

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.