Posts Tagged "Linked Lists"

Intersection of LinkedLists Using Java

Yesterday a user came through the Java forum looking for help with finding the intersection of two LinkedList sets. If you were anything like I was in school, you probably had a flash back to math class and the teacher drawing Venn Diagrams up on the white board. Two circles, usually representing two sets of elements, and where they overlapped was elements shared between the sets. Maybe they even drew ...

Nodes in a Linked List and Binary Trees

A node... a singular entity found drifting in space. So you throw out the tractor beam and bring it aboard. Safe right? After all, what can a simple node do? Little did you realize that the node, when combined with others, could form an organized group with a singular purpose... TO ASSIMILATE YOU! Ok, perhaps I am going a bit overboard with the whole Borg analogy. But when you think ...