
How I Choose Dynamic‑Programming State
Choose dynamic‑programming state with Word Break, Unique Paths, common subsequences, and Coin Change: define the question before choosing a table or loop.
Articles
JavaScript is the working language behind most of my front‑end writing, from small browser behaviours to application state and asynchronous code. These articles favour the mechanism behind a feature over a clever trick, whether the subject is callbacks, async code, or a language edge that only becomes obvious in production.

Choose dynamic‑programming state with Word Break, Unique Paths, common subsequences, and Coin Change: define the question before choosing a table or loop.

Solve Decode Ways in TypeScript with one‑digit and two‑digit choices, careful zero handling, exact intermediate counts, and a two‑counter solution.

Solve Cheapest Flights Within K Stops in TypeScript, using separate cost arrays to enforce the stop limit and avoid misleading cheapest‑arrival shortcuts.

Solve Network Delay Time in TypeScript with Dijkstra's algorithm, a small min‑heap, stale‑entry checks, and a clear explanation of when distances become final.

Stale closures in React explained through renders, handlers, effects, timers, refs, dependency arrays, why callbacks read old state, and how to fix them.

Find the longest increasing subsequence in TypeScript, from quadratic dynamic programming to binary search, with duplicate handling and a clear tails invariant.

Build an LRU cache in TypeScript with a hash map and doubly linked list, then compare it with a simpler JavaScript Map implementation and O(1) operations.

Mastering Server Components in Next.js, including client boundaries, data fetching, caching, streaming, and the mistakes that make App Router code messy.

Build a circular queue in TypeScript using a head index and size. Trace wraparound, distinguish full from empty, and test sequences against an array.

Solve Kth Smallest Element in a BST with in‑order traversal, showing why the tree's ordering removes the need for a separate sorting step in interviews.

Solve Number of Provinces with union‑find in TypeScript, comparing DFS, connected components, path compression, union by rank, and matrix scanning.

NgRx Store vs. SignalStore explained with real Angular trade‑offs, including scope, TypeScript ergonomics, devtools, effects, and when neither is necessary.

Solve the N‑Queens problem with TypeScript backtracking, including the decision tree, constraints, complexity, and test cases.

Manage Angular state with RxJS Subjects and derived streams, including combineLatest timing, AsyncPipe cleanup, local UI state and when signals fit better.

A clear walkthrough of LeetCode Jump Game using a greedy algorithm, including why the farthest‑reach approach works and where slower ideas get stuck.

Solve LeetCode 207 in TypeScript with Kahn's algorithm and DFS cycle detection, comparing graph states, queue behaviour, complexity, and edge‑case tests.

Compare client‑side React caching, Next.js SSG, ISR and SSR caching, and Redis‑backed caches for reliable serverless data fetching and persistence.

Solve Rotting Oranges with multi‑source BFS in TypeScript, treating each queue level as one minute and tracking fresh cells until spread completes.