This site features a collection of common technical interview questions gathered by a group of programmers who have been through, and given, lots of technical interviews. There is an emphasis on C++ and game programming technical interviews, but most of the questions are relevant to any technical interview.
I’ve Got the Power (of 2)

Write a C function to test whether a number is a power of 2. Try to do it without using any loops.

Field of View

Given a farclip distance and viewing frustum width, how can you find the angle of the field-of-view?


How can you determine if a ray intersects a sphere? The more efficient your solution, the better.

Programming Interviews Exposed
This book teaches you critical interviewing skills such as how to ask effective questions, how to best approach a problem, and what to do when you get stuck. Integrated throughout the book are problems taken from real interviews at top computer companies, followed by an in-depth analysis and explanation of the thought process leading to solutions.
The Shuffle

Come up with an algorithm to shuffle a deck of cards. Discuss how uniform a distribution your solution would achieve, and how you could potentially improve upon it.


Write a recursive factorial function. Then write an iterative (non-recursive) version.

Do you have a technical interview question you would like to submit? Some tips you would like to pass on? Just want to say hi? Feel free to contact us