Software Engineer's Blog

Showing Posts From

Algorithm

Understanding the Two Pointers Technique

Coding Interview

Understanding the Two Pointers Technique

Jason Yang · 27 Mar, 2026

The Two Pointers technique explained with clear examples: sorted arrays, sliding windows, and linked lists — a practical guide for coding interviews.

Divide and Conquer (D&C): Beyond Merge Sort

Coding Interview

Divide and Conquer (D&C): Beyond Merge Sort

Jason Yang · 03 Dec, 2025

Divide and Conquer is more than Merge Sort: the 3-step design paradigm, how it differs from plain recursion, and the interview patterns that use it.

Why is Binary Search O(log n)?

Coding Interview

Why is Binary Search O(log n)?

Jason Yang · 02 Dec, 2025

Binary Search runs in O(log n) because it halves the search space every step. Here's the intuition, the math proof, and how it compares to linear search.

Understanding Prefix and Suffix Patterns

Coding Interview

Understanding Prefix and Suffix Patterns

Jason Yang · 28 Nov, 2025

Prefix Sum and Suffix Product explained: what these algorithm terms really mean, why they beat naive recomputation, and where they show up in problems.