Showing Posts From

Arrays

Array & String Manipulation Patterns

Array & String Manipulation Patterns

Week 2 notes: strings are basically immutable arrays of characters, and that one word (immutable) quietly changes how you write fast code.

Arrays 101: Foundations & Core Operations

Arrays 101: Foundations & Core Operations

My Week 1 notes on arrays: how they sit in memory, the Big-O of every core operation, the in-place write-pointer trick, and the patterns that keep showing up.

Two Pointers Algorithm - Intuition & Patterns

Two Pointers Algorithm - Intuition & Patterns

Week 0 notes on the two pointers technique: the 'squeeze' idea that kills a lot of nested loops, the two movement styles, and when to actually use it.

Sliding Window Algorithm - Fixed & Variable Length

Sliding Window Algorithm - Fixed & Variable Length

Week 0 notes on the sliding window: when to use it, fixed vs variable windows, and how it turns a lot of subarray and substring problems from O(n^2) into O(n).

Lists, Arrays & Strings: Big-O Overview

Lists, Arrays & Strings: Big-O Overview

Week 0 notes on Python lists and strings through a Big-O lens: static vs dynamic arrays, the cost of every common operation, and the cheat sheets I check before writing loops.