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

4 responses...

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.

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

4 responses...

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.

Recommended Reading:

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.

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