algorithms
Monday, September 27, 2010
How to add two linked list
How to add two linked list where each list is a list of numbers like 1 -> 2 -> 3 -> 4 .
You should not use recursion or reversing the list.
Note: Two lists can differ by size.
1 comment:
Aravind
September 27, 2010 at 10:02 PM
Use our two stack for two list and and construct the resultant list.
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Use our two stack for two list and and construct the resultant list.
ReplyDelete