I have collected few very good problems on linked-lists surfing through the internet. They include basic conceptual questions as well as hard to bite. I will keep update the blog as soon as I find some good stuff.

- Given a linked list, give an algorithm to reverse it using constant space and in single pass.
- Given a linked list of
nodes, give an algorithm to reverse every**n**nodes of the linked list.*k* - A linked list has a closed loop in it, i.e. the last node points to some node in middle of it. Give an algorithm to find the node from which the loop begins. The last node may points to the first node
- Given a linked list with each node having a lower-case character. Find whether the word formed by characters of list is palindrome or not.(Do in a single pass with constant space)
- Given a doubly linked-list containing integers in sorted sequence, create a height balanced binary search tree model using the same data structure.

Advertisements