Software Programmer Interview Questions

22,436 software programmer interview questions shared by candidates

You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).
avatar

Programmer

Interviewed at IG Group

2.9
Feb 27, 2010

You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).

They had a mix of technical and the weird type of manhole cover questions. I found the questions geared towards tripping you up. One question seemed to indicate a binary search, but that turned out to be the wrong approach. You have two XBoxes and a 100 floor building. If you drop the XBox from a floor it either shatters or it doesn't. How do you reliably find the highest floor from which you can drop your XBox? Both XBoxes can break in the process. How many trials does your approach take in the worst case?
avatar

Programmer/Physics Simulation

Interviewed at Epic Games

3.6
Aug 22, 2016

They had a mix of technical and the weird type of manhole cover questions. I found the questions geared towards tripping you up. One question seemed to indicate a binary search, but that turned out to be the wrong approach. You have two XBoxes and a 100 floor building. If you drop the XBox from a floor it either shatters or it doesn't. How do you reliably find the highest floor from which you can drop your XBox? Both XBoxes can break in the process. How many trials does your approach take in the worst case?

Viewing 21 - 30 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 22,436 interview questions and reports from Software programmer interviews. Prepare for your interview. Get hired. Love your job.