## Delete all Non-Prime Nodes from a Singly Linked List

Given a singly linked list containing N nodes, the task is to delete all nodes from the list which are not prime. Examples: Input :… Read More »

- Design a data structure for LRU Cache
- Amazon SDE-2 Interview Experience
- Find first node of loop in a linked list
- How does Floyd's slow and fast pointers approach work?
- Flatten a binary tree into linked list
- Insert a node at a specific position in a linked list
- Recursively Reversing a linked list (A simple implementation)
- Sandvine Interview Experience for FTE 2018
- Microsoft Interview experience | Set 178 (On-Campus Internship for IDC)
- Delete all the even nodes of a Circular Linked List
- Replace even nodes of a doubly linked list with the elements of array
- Applications of linked list data structure
- Clone a stack without extra space
- KLA Tencor Interview Experience | Set 3
- Delete a Node from linked list without head pointer
- Implement a stack using singly linked list
- Delete all the even nodes from a Doubly Linked List
- Flatten a binary tree into linked list | Set-2
- Delete every Kth node from circular linked list
- Multiplication of two polynomials using Linked list
- Sum of the nodes of a Singly Linked List
- Rotate the sub-list of a linked list from position M to N to the right by K places
- Sum of the nodes of a Circular Linked List
- Find the product of last N nodes of the given Linked List
- Remove first node of the linked list
- Find a peak element in Linked List
- Delete all Prime Nodes from a Circular Singly Linked List
- Reverse a doubly circular linked list
- Delete all Prime Nodes from a Singly Linked List
- Remove last node of the linked list

Given a singly linked list containing N nodes, the task is to delete all nodes from the list which are not prime. Examples: Input :… Read More »

Given a singly linked list. The task is to find the average of all nodes of the given singly linked list. Examples: Input: 7->6->8->4->1 Output:… Read More »

Static Queue: A queue is an ordered list of elements. It always works in first in first out(FIFO) fashion. All the elements get inserted at… Read More »

Given a singly circular linked list. The task is to find the sum and product of nodes which are divisible by K of the given… Read More »

Delete all odd position nodes from circular linked list Given a Singly Circular Linked List, starting from the first node delete all odd position nodes… Read More »

Given a Circular Linked List. The task is to write programs to delete nodes from this list present at: First position. Last Position. At any… Read More »

Given two polynomials in the form of linked list. The task is to find the multiplication of both polynomials. Examples: Input: Poly1: 3x^2 + 5x^1… Read More »

Given a singly circular linked list of nodes. The task is to find the smallest and largest elements in the circular linked list. Examples: Input… Read More »

Given a singly linked list containing N nodes, the task is to find the total count of prime numbers. Examples: Input: List = 15 ->… Read More »

Given a singly linked list which is sorted in ascending order and another singly linked list which is unsorted. The task is to print the… Read More »

Given a Linked List and a key K. The task is to calculate the sum and product all the nodes from the list that are… Read More »

Given a linked list. The task is to find the second last node of the linked list using a single traversal only. Examples: Input :… Read More »

Given a Linked list of integer data. The task is to write a program that efficiently finds the second smallest element present in the Linked… Read More »

Given a linked list, the task is to remove the last node of the linked list and update the head pointer of the linked list.… Read More »

You are given a singly linked list and pointer which is pointing to the node which is required to be deleted. Any information about head… Read More »