In this article, we will solve a very popular question Reverse Linked List in groups of Size K. Problem Statement:
Continue readingCategory: Linked List
Find intersection of Two Linked Lists
Problem Statement: Given the heads of two singly linked-lists headA and headB, return the node at which the two lists
Continue readingDelete given node in a Linked List : O(1) approach
Problem Statement: Write a function to delete a node in a singly-linked list. You will not be given access to
Continue readingImplement LRU Cache
Problem Statement: “Design a data structure that follows the constraints of Least Recently Used (LRU) cache”. Implement the LRUCache class:
Continue readingMerge two sorted Linked Lists
In this article, we will solve the most asked coding interview question: ” Merge two sorted Linked Lists “ Problem
Continue readingRemove N-th node from the end of a Linked List
Problem Statement: Given a linked list, and a number N. Find the Nth node from the end of this linked
Continue readingAdd two numbers represented as Linked Lists
Problem Statement: Given the heads of two non-empty linked lists representing two non-negative integers. The digits are stored in reverse
Continue readingReverse a Linked List
Problem Statement: Given the head of a singly linked list, write a program to reverse the linked list, and return
Continue readingFind middle element in a Linked List
Problem Statement: Given the head of a singly linked list, return the middle node of the linked list. If there
Continue reading