← Goldman Sachs questions

Insert element at i-th position in a doubly linked list

Filed under Goldman Sachs

Write a function to insert a new node with a given value at the i-th position (0-indexed) in a doubly linked list.

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.