Reverse linked list data structure Given a singly linked list. Write a function to reverse the linked list recursively Reverse linked list algorithm The linked list can be viewed as the concatenation of the first node and the rest of …

# Tag Archives: Linked List

## Reverse linked list c++

Posted by admin
on July 31, 2010
No comments

Reverse linked list data structure Given a singly linked list. Write a function that reverses the linked list. Provide explanation and logic. Reverse linked list solution An iterative solution is to use two pointers. The first pointer points to the …

## Circular linked list in c++

Posted by admin
on July 29, 2010
No comments

Circular linked list data structure This is a typical interview question. Given a singly linked list. Write a function that detects if the linked list is circular (has a loop) which means the last node points to another node in …

## Find the nth node from the end of a linked list

Posted by admin
on July 27, 2010
No comments

Get nth node linked list problem Given a singly linked list. Write a function that returns the nth node from the end of the list. How to find nth node in linked list Let (n) be the position (from the …