InterviewStack.io LogoInterviewStack.io

Game Specific Coding Problems Questions

Coding and algorithmic interview problems framed in game development contexts. Typical tasks include implementing pathfinding algorithms such as A star and Dijkstra, collision detection techniques including axis aligned bounding box and circle collisions and swept collisions, finite state machines and hierarchical state machines for game logic, sorting strategies for rendering, wave spawning and scheduling systems, inventory management and event queue implementations, player ranking and matchmaking algorithms, and simple physics calculations or coordinate transformations. Candidates should be able to translate game requirements into appropriate data structures and algorithms, reason about time and space complexity, design for real time performance and memory constraints, handle numerical precision and determinism issues, discuss trade offs and alternative approaches, and propose test cases and edge case handling. This canonical topic covers both standard algorithmic problems presented in game terminology and game domain specific implementation scenarios.

HardTechnical
57 practiced
Design an animation blending system that supports multiple layered animations with weight blending and root motion extraction. Describe the runtime data layout, how to evaluate blended bone transforms efficiently per-frame, and trade-offs if blending is done on CPU vs GPU.
HardSystem Design
65 practiced
You must design a matchmaking microservice supporting 100k concurrent queued players. Define the service API, data structures, scaling strategy (sharding, region affinity), and the algorithm to match players by rank, latency, and party size. Address fairness, starvation, and latency SLAs.
MediumTechnical
55 practiced
Design a lightweight deterministic RNG for use in replayable single-player games. Requirements: repeatable sequence given seed, low memory, ability to fast-forward N steps efficiently, and good statistical properties for gameplay. Suggest an implementation and its complexity for fast-forward.
MediumTechnical
62 practiced
Design a data structure to support an inventory with O(1) add/remove by item-instance id, O(1) lookup by item type, and efficient iteration for UI. Include support for stack limits and fast removal of the oldest stacks. Describe implementation and complexity.
EasyTechnical
65 practiced
Write a function in C# that tests collision between two axis-aligned bounding boxes (AABB) in 2D. Each box is defined by a center (x,y) and half-extents (hx,hy). Return a boolean indicating overlap and, if overlapping, the minimum translation vector (MTV) to separate them.

Unlock Full Question Bank

Get access to hundreds of Game Specific Coding Problems interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.