1. Given a single link list with one info part containing single character
and a link. Check whether the link list is a palindrome or not.
The algo should run in Linear time only. You can't use any array or string
to store the string of link-list.

2. You are given a Double Link List with one pointer of each node pointing
to the next node just like in a single link list. The second pointer however
CAN point to any node in the list and not just the previous node.
Now write a program in O(n) time to duplicate this list. That is, write a
program which will create a copy of this list.
-- 
Regards,

Varun Bhatia
MCA
Department of Computer Science,
University of Delhi,
Delhi - 110007

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to