Abstract Algorithms
Abstract AlgorithmsAn AI Powered Learning Platform

  • Home
  • Interview Prep
Home

Topic

linked list

2 articles

In-Place Reversal of a Linked List: The 3-Pointer Dance Every Interviewer Expects

TLDR: Reversing a linked list in O(1) space requires three pointers — prev, curr, and next. Each step: save next, flip curr.next to point backward, advance both prev and curr. Learn this once and you unlock four reversal variants that appear constant...

Mar 29, 2026•16 min read
Fast and Slow Pointer: Floyd's Cycle Detection Algorithm Explained

Fast and Slow Pointer: Floyd's Cycle Detection Algorithm Explained

TLDR: Move a slow pointer one step and a fast pointer two steps through a linked structure. If they ever meet, a cycle exists. Then reset one pointer to the head and advance both one step at a time — where they meet next is the cycle's start node. Th...

Mar 29, 2026•17 min read

Abstract Algorithms

Exploring the fascinating world of algorithms, data structures, and software engineering through clear explanations and practical examples.

Navigate

  • Home
  • Guided Topics
  • Interview Prep
  • About

© 2026 Abstract Algorithms. All rights reserved.

Powered by Hashnode