15-Puzzle Minimum Moves (BFS)
Asked at Microsoft · Coding Questions · Difficulty: Medium
A 4×4 board contains tiles `1..15` and one blank (`0`). Each move slides one of the blank's 4-neighbor tiles into the blank. The solved state has `1..15` in row-major order with the blank at position (3,3).
Loading the problem…
More Microsoft interview questions
- LLM conceptual questions
- Tiny Next-Token Prediction Model (PyTorch Fill-In)
- Roofline Analysis and Mixed-Precision Gradients for Matmul
- Design Search Autocomplete / Typeahead
- Design a Chatbot Personalization / Memory System
- Design a Job Scheduler / ETL Pipeline