Topic: Linked List Problem / Level: intermediate

Problem: How do you flatten a multilevel singly linked list where each node has both a next and child pointer?

Run the code to see the output here...