SBSimran Baliinsimranbali-dsa.hashnode.dev·Jul 11 · 6 min readLC. 143 Reorder List🔗: https://leetcode.com/problems/reorder-list/ Problem Statement Given the head of a singly linked list, reorder the list in the following pattern: L0 → Ln → L1 → Ln-1 → L2 → Ln-2 ... You are not al00
SBSimran Baliinsimranbali-dsa.hashnode.dev·Jul 10 · 7 min readLC. 234 Palindrome Linked ListProblem Statement Given the head of a singly linked list, return true if the linked list is a palindrome, otherwise return false. A palindrome is a sequence that reads the same from both the beginning10
SBSimran Baliinsimranbali-dsa.hashnode.dev·Jul 9 · 6 min readLC. 206 Reverse a Linked List🔗: Reverse Linked List - LeetCode Problem Statement Given the head of a singly linked list, reverse the linked list and return the new head. Example Input: 1 -> 2 -> 3 -> 4 -> 5 Output: 5 -> 4 -> 3 20
SBSimran Baliinsimranbali-dsa.hashnode.dev·Jun 22 · 5 min readLC 2095. Delete Middle Node of Linked List (Medium🔗: Delete the Middle Node of a Linked List - LeetCode Problem Statement You are given the head of a linked list. Delete the middle node and return the head of the modified linked list. The middle no31X
SBSimran Baliinsimranbali-dsa.hashnode.dev·Jun 21 · 5 min readKth Node from MiddleProblem Statement Given an integer B and a linked list A of length N. From the middle of the Linked List towards the beginning, we have to determine the value of the Bth node. Return -1 if such an ele20