Mental Gym

My personal interview practice space.

Problems I've worked through, solutions I've written, patterns I want to remember.

32 Algorithms
4 ML Problems
9 Notes
11 Easy
19 Medium
2 Hard

01

Algorithms

LeetCode-style problems grouped by pattern — arrays, hashing, sliding window, two pointers, stack, and more.

32 problems

02

Machine Learning

ML coding interview questions — implement algorithms from scratch, evaluation metrics, transformers, and PyTorch.

4 problems

03

System Design

ML system design cases — architecture tradeoffs, distributed training, inference, and production pipelines.

Coming soon

Featured Notes

View all notes
  1. 01 Asymptotic Analysis How algorithm complexity is measured and reasoned about — Big O, Omega, Theta, recurrences, the Master Theorem, and space analysis.
  2. 02 Prefix Sum Pattern A guide to the Prefix Sum pattern for efficient range sum queries in 1D, 2D, and 3D arrays.
  3. 03 Python Built-in Functions & Operators for LeetCode A comprehensive reference of Python built-in functions, data structures, and libraries commonly used in LeetCode problems.