← Goldman Sachs questions

Reverse Triplets in LinkedList

Filed under Goldman Sachs

Given the head of a singly linked list, reverse the nodes of the list k at a time (specifically triplets, i.e., k=3) and return its modified head.

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.