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:

  1. Use our two stack for two list and and construct the resultant list.

    ReplyDelete