← IBM questions

Flatten a linked list with next and child pointers

Filed under IBM · Also reported at Infibeam Avenues Limited

Given a linked list where besides the next pointer, each node has a child pointer which may or may not point to a separate singly linked list. These child lists may have one or more children of their…

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 IBM questions

Collected from public candidate posts and coding forums. Updated Nov 2026.