Linked List Question Bank

Linked List

- In this page, I'm maintaining the collection of Linked List queries. Please don't put solutions here....
In case if you want solutions or suggestions, discuss with c4swimmers community members by sending a mail to c4swimmers@yahoogroups.com



* How to declare a structure of a linked list? Also implement a Generic Linked List.

* Implement a Stack (LIFO) using singly linked list?

* Write a C program to implement a Queue (FIFO) using singly linked list?

* Write a C program to reverse a singly linked list?

* How to detect a loop in a singly linked list? Write a C program for the same.

* How would you find out if one of the pointers in a linked list is corrupted or not?

* How do you reverse a doubly linked list? Write a C program to do the same.

* Given only a pointer to a node to be deleted in a singly linked list, how do you delete it?

* How do you find the middle of a linked list? Write a C program for the same.

* How do you sort a linked list? Write a C program to sort a linked list.

* How do you reverse a linked list without using any C pointers?

* How to compare two linked lists? Write a C program to compare two linked lists.

* How to create a mirror copy of a linked list? Write a C program for the same.

* Write a C program to return the nth node from the end of a linked list.

Google