Skip to content

Tag Archives: circular linked list

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 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 circular singly linked list containing N nodes. The task is to delete all nodes from the list which are prime.  Examples:   Input :… Read More
Given a circular singly linked list containing N nodes, the task is to delete all the even nodes from the list.  Examples:   Input : 57->11->2->56->12->61… Read More
Given a singly Circular linked list. The task is to find the sum of nodes of the given linked list.  For the above circular list,… Read More
Delete every kth node from a circular linked list until only one node is left. Also, print the intermediate lists. Examples:   Input : n=4, k=2,… Read More
Pre-requisite: Convert an Array to a Circular Doubly Linked List, Doubly Circular Linked List Given a Doubly circular linked list. The task is to find… Read More
The entire process consisted of 5 rounds: 1 online coding, 1 debugging, 2 Technical and 1 HR/System Design Round. The minimum criteria for the online… Read More
Prerequisite: Insert Element Circular Doubly Linked List. Convert an Array to a Circular Doubly Linked List. Given the start pointer pointing to the start of… Read More
The problem is to reverse the given doubly circular linked list. Examples: Input: Output: Recommended: Please try your approach on {IDE} first, before moving on… Read More
Prerequisite: Doubly Linked list, Circular Linked List, Circular Doubly Linked List Given an array of N elements. The task is to write a program to… Read More
Given n people standing in a circle where 1st is having sword, find the luckiest person in the circle, if from 1st soldier who is… Read More
Given Circular linked list exchange the first and the last node. The task should be done with only one extra node, you can not declare… Read More
Given a singly linked list, we have to convert it into circular linked list. For example, we have been given a singly linked list with… Read More
There are n people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around… Read More