Coding Interview
15. 3Sum
Jason Yang · 27 Mar, 2026
3Sum (LeetCode 15): sort then two-pointer for an O(n^2) solution, why sorting unlocks it, and the three places duplicate triplets sneak in — with an interactive visualization.
Coding Interview
Jason Yang · 27 Mar, 2026
3Sum (LeetCode 15): sort then two-pointer for an O(n^2) solution, why sorting unlocks it, and the three places duplicate triplets sneak in — with an interactive visualization.
Coding Interview
Jason Yang · 27 Mar, 2026
Container With Most Water (LeetCode 11): the two-pointer O(n) approach, and the short proof for why moving the shorter line never skips a better answer — with an interactive visualization.
Coding Interview
Jason Yang · 27 Mar, 2026
The two-pointer pattern in Java: how converging pointers turn an O(n²) brute force into a single O(n) pass, and the decision rule that makes it safe.
System Design
Jason Yang · 26 Mar, 2026
A practical Kafka testing strategy using Spring EmbeddedKafka and Python testcontainers. Learn how to test producers and consumers with real Kafka instead of mocks.
System Design
Jason Yang · 26 Mar, 2026
Implement a Kafka consumer in FastAPI with aiokafka: async processing, manual offset commit, error handling, and idempotency patterns for production.