Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to find out Linked list is palindrome or not (http://www.go4expert.com/forums/linked-list-palindrome-t7745/)

skaryab03 7Dec2007 16:54

How to find out Linked list is palindrome or not
 
Hi Every One:)

I keen to know the solution to find out whether Linked List is palindrome or not.
Solution should be optimised with respect to time and space.
I Would like to have +ve response from group members.

Thanks
:) :)

Salem 7Dec2007 17:16

Re: How to find out Linked list is palindrome or not
 
So have you done any research into the problem or not?

Is your list a single linked list, or a double linked list ?
Because the solution is boringly trivial for a double linked list.

skaryab03 10Dec2007 14:47

Re: How to find out Linked list is palindrome or not
 
Quote:

Originally Posted by Salem
So have you done any research into the problem or not?

Is your list a single linked list, or a double linked list ?
Because the solution is boringly trivial for a double linked list.

Actually this question is asked in one interview , Linked List is single Linked List.


All times are GMT +5.5. The time now is 12:45.