Abstract AlgorithmsAbstract Algorithms

  • Home
  • All Posts
  • All Series
  • About

Category

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•17 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 —

Mar 29, 2026•21 min read

Abstract Algorithms

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

Navigation

  • Home
  • All Posts
  • All Series
  • About

Series

  • How It Works: Internals Explained
  • System Design Interview Prep
  • Data Structures and Algorithms
  • LLM Engineering
  • Machine Learning Fundamentals

Popular Topics

  • data structures
  • algorithms
  • coding interview
  • Java
  • Heaps
  • caching

Author

Abstract Algorithms

Abstract Algorithms

@abstractalgorithms

1 followers on Hashnode

© 2026 Abstract Algorithms. All rights reserved.

Powered by Hashnode