BRAINTEASER PROBLEMS
Brainteasers draw from a much broader and more diverse body of knowledge than programming and technical problems, so a comprehensive review is even less possible here. Because any brainteaser you encounter in an interview is likely to be unfamiliar, the problems that follow prepare you by providing opportunities to practice all of the techniques we’ve described so you can tackle anything that comes your way.
Count Open Lockers
This problem is designed to seem overwhelming. You don’t have time to draw a diagram...