26 real interview questions from Google, Meta, Amazon, Microsoft, and startups. Full answers for every question. Practice explaining these out loud — not just reading them.
Questions are ordered by category. In real interviews, multiple categories mix. After practicing each, do a full mock where you pick 5 random questions and time yourself at 3 minutes each.
θ = θ − α × ∇L(θ).softmax(Q × K^T / √d_k) — this produces a weight for each pair of tokensW' = W + BA where B and A are low-rank (rank 4–64). Only B and A are trained.get_stock("AAPL"){"price": 189.47}search_code(query) — semantic search over codebaseread_file(path, lines) — read specific file sectionsearch_docs(query) — search internal documentationget_git_history(file) — why was this changed?run_tests(test_path) — verify a hypothesis (sandboxed)