Skip to content
Tagged articles

abba trap

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

LeetCode 3: 5 Sliding Window Pitfalls That Fail 90% of Candidates

This article dissects LeetCode 3's sliding window solution from an interviewer's perspective, covering three code versions (HashSet, HashMap, int[128] array), five common pitfalls including the 'abba' trap, seven follow-up questions, complexity analysis, and a template to solve five related problems.

HashMap vs arrayLeetCode 3Time Complexity
0 likes · 26 min read
LeetCode 3: 5 Sliding Window Pitfalls That Fail 90% of Candidates