Skip to content

Category Archives: Linked List

Given two strings, represented as linked lists (every character is a node in a linked list). Write a function compare() that works similar to strcmp(),… Read More
Given two strings, represented as linked lists (every character is a node in a linked list). Write a function compare() that works similar to strcmp(),… Read More
Given two strings, represented as linked lists (every character is a node in a linked list). Write a function compare() that works similar to strcmp(),… Read More
Given two strings, represented as linked lists (every character is a node in a linked list). Write a function compare() that works similar to strcmp(),… Read More
Given a linked list that is sorted based on absolute values. Sort the list based on actual values.Examples:  Input: 1 -> -10 Output: -10 ->… Read More
Given a linked list that is sorted based on absolute values. Sort the list based on actual values.Examples:  Input: 1 -> -10 Output: -10 ->… Read More
Given a linked list that is sorted based on absolute values. Sort the list based on actual values.Examples:  Input: 1 -> -10 Output: -10 ->… Read More
Given a linked list that is sorted based on absolute values. Sort the list based on actual values.Examples:  Input: 1 -> -10 Output: -10 ->… Read More
Given a non-decreasing linked list. The task is to square the elements of the linked list and arrange them in sorted order without using any… Read More
Given a linked list of 0s, 1s and 2s, sort it.Examples: Input: 1 -> 1 -> 2 -> 0 -> 2 -> 0 -> 1… Read More
Given a linked list of 0s, 1s and 2s, sort it.Examples: Input: 1 -> 1 -> 2 -> 0 -> 2 -> 0 -> 1… Read More
Given a linked list of 0s, 1s and 2s, sort it.Examples: Input: 1 -> 1 -> 2 -> 0 -> 2 -> 0 -> 1… Read More
Given a linked list of 0s, 1s and 2s, sort it.Examples: Input: 1 -> 1 -> 2 -> 0 -> 2 -> 0 -> 1… Read More
Given a linked list of 0s, 1s and 2s, sort it.Examples: Input: 1 -> 1 -> 2 -> 0 -> 2 -> 0 -> 1… Read More
Given a linked list and two integers M and N. Traverse the linked list such that you retain M nodes then delete next N nodes,… Read More

Start Your Coding Journey Now!