One Stop 4 Coders
Monday, October 14, 2013
[Amazon] Pair wise swap in Linked List
Given a singly linked list, write a function to swap elements pairwise.
Ex- If linked list is 1->2->3->4->5
Result will be 2->1->4->3->5
1 comment:
Priyanka Singh
October 14, 2013 at 7:02 AM
http://www.geeksforgeeks.org/pairwise-swap-elements-of-a-given-linked-list/
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
http://www.geeksforgeeks.org/pairwise-swap-elements-of-a-given-linked-list/
ReplyDelete