Math

34 articles

dsa12 min read

Plus One — Mastering Carry Propagation in Arrays (LeetCode 66)

LeetCode 66 looks trivial until you hit [9,9,9]. Learn why interviewers love this problem, how carry propagation cascades through digits, the critical all-9s edge case that requires a new array, and why early termination makes your solution elegant — with Python and JavaScript solutions fully explained.

Read →
next js3 min read

Deriving the OLS Estimator

How to derive the OLS Estimator with matrix notation and a tour of math typesetting using markdown with the help of KaTeX.

Read →