linked list flattening

You are given a singly link-list such that each node of this list is also a
head of another link list of the same type. So, how does one flatten the
linked-list

struct node {
void *data; /* could be anything */
struct node *next;
struct node *down;
};

No comments: