Skip to content
Tagged articles

in-place deletion

1 articles · Page 1 of 1
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Oct 24, 2026 · Interview Experience

LeetCode 27 Remove Element: Two-Pointer In-Place Deletion, Interview Tips & 11 Pitfalls

This article thoroughly explains LeetCode 27 Remove Element using fast-slow and two-pointer swap approaches, covering loop invariants, boundary handling, 11 common pitfalls, 7 interview follow-up questions, and how this template applies to related problems like 26, 283, and 80.

Algorithm OptimizationLeetCode 27array manipulation
0 likes · 27 min read
LeetCode 27 Remove Element: Two-Pointer In-Place Deletion, Interview Tips & 11 Pitfalls