Back to Browse

πŸ”„ Reorder List – Blind 75 | Python | Optimal In-Place Solution

71 views
Apr 30, 2025
18:15

Problem: Rearrange the linked list L0 β†’ L1 β†’ … β†’ Ln into L0 β†’ Ln β†’ L1 β†’ Ln-1 β†’ … This must be done in-place with O(1) space. βœ… In this video, we cover: Finding the middle with two pointers Reversing the second half Merging both halves in zig-zag fashion πŸ“Œ Problem: https://leetcode.com/problems/reorder-list/ πŸ“Œ Timestamps: 00:00 – Introduction 00:35 – Problem Explanation 02:00 – BruteForce solution 03:30 – optimal solution 15:40 – Complete Code Walkthrough & Edge Cases #Blind75 #Leetcode #Python #BinaryTree #Recursion #DSA #CodingInterview

Download

0 formats

No download links available.

πŸ”„ Reorder List – Blind 75 | Python | Optimal In-Place Solution | NatokHD