Day 10 of 133
SVD, PCA, t-SNE, UMAP + DSA Math & Geometry finish
Workhorse decomposition, dimensionality reduction, when to read which plot.
DSA · NeetCode Math & Geometry
- Multiply StringsDSA · Math & Geometry
Interview questions to prep
- Where does integer overflow / negative input / zero hide here, and how do you guard against it?
- Can you derive a closed-form solution, and how does it compare to the iterative one?
- Walk through edge cases: 0, 1, max int, min int, negative input.
- Detect SquaresDSA · Math & Geometry
Interview questions to prep
- Where does integer overflow / negative input / zero hide here, and how do you guard against it?
- Can you derive a closed-form solution, and how does it compare to the iterative one?
- Walk through edge cases: 0, 1, max int, min int, negative input.
Math · SVD & PCA
Interview questions to prep
- Explain SVD geometrically: X = UΣVᵀ.
- Why does SVD always exist while eigendecomposition does not?
- Where is SVD used in recommender systems and embeddings?
Interview questions to prep
- Derive PCA as maximizing variance OR minimizing reconstruction error — they give the same answer. Why?
- When does PCA fail (non-Gaussian, non-linear, scale-sensitive)?
- Compare PCA vs t-SNE vs UMAP — when do you pick each?
Interview questions to prep
- Why are distances in a t-SNE plot misleading?
- When would you choose UMAP over t-SNE?
References & further reading