Results 1 to 2 of 2
Thread: Binary Tree of Linked Lists
- 03-23-2011, 07:36 AM #1
Member
- Join Date
- Mar 2011
- Location
- Manassas, VA
- Posts
- 14
- Rep Power
- 0
- 03-23-2011, 11:40 AM #2
Senior Member
- Join Date
- Nov 2010
- Location
- Delhi
- Posts
- 135
- Blog Entries
- 1
- Rep Power
- 0
I don't know how difficult it would be:
write a wrapper class around LinkedList and this class should implement Comparable.
As you are implementing Comparable, you will have to write your compareTo method. You will need to write a comparison algo in this method, which should be able to compare two LinkedLists.
Once you are able to do this, you can easily put this wrapper object in the binary tree.
Similar Threads
-
concatenating linked lists
By coder94 in forum New To JavaReplies: 1Last Post: 02-28-2011, 06:16 AM -
Linked Lists
By Dee in forum New To JavaReplies: 18Last Post: 02-02-2011, 03:14 AM -
Concatenate Linked Lists
By tttestall in forum New To JavaReplies: 1Last Post: 04-20-2010, 07:03 PM -
Data Structures(Binary Search Tree to AVL Tree)ASAP pls
By jfAdik in forum Forum LobbyReplies: 0Last Post: 04-04-2010, 07:40 AM -
Linked Lists
By vendetta in forum New To JavaReplies: 6Last Post: 01-26-2010, 08:23 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks