Low-level design
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
6 write-ups
| Title | Difficulty |
|---|---|
| Design Connect Four Design Connect Four with gravity drops through column heights, turn checks, wins in four directions found by walking out from the last disc, draws, and room for undo and other board sizes. | Easy |
| Design Tic-Tac-Toe Design tic-tac-toe on an N by N board with turn checks, rejected moves, wins and draws, and a win check that costs O(1) per move thanks to running line counters. | Easy |
| Design Battleship Design two-player Battleship with validated ship placement, a placement-then-battle game phase, shots that report miss, hit and sunk in constant time, and room for a computer opponent. | Easy |
| Design Minesweeper Design Minesweeper: mine placement kept outside the game, neighbor counts, flood reveal with a queue, flags, and win or lose detection with a counter instead of a board scan. | Easy |
| Design Snake Game Design the classic Snake game on a grid: a body stored as a queue plus a set, food that appears one piece at a time, growth, wall and self collisions, and the score after every move. | Easy |
| Design Snakes and Ladders Design Snakes and Ladders with one jump map for snakes and ladders, an injected dice strategy, turn order for any number of players, extra turns on a six, and exact landing on the last cell. | Easy |