First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. George Carrette
Write a program to find intersection nodes from two linked lists. The utility function takes two linked list head nodes and returns the intersection linked list head. The display function iterate all the nodes from intersection linked list and display.
Items from the first list: [1, 1, 1, 4] Items from the Second list: [1, 1, 1, 4] Intersection Items: [1, 4]