Interview Question

Back-end Game Developer Interview



How to determine which button offers which drink from a vending machine, knowing that all the labels are mixed.

Tags:brain teaser
AnswerAdd Tags

Interview Answers

2 Answers


The first thing that came to mind was Bubble Sort, but other (and more efficient) sorting methods should work too.

Ana Teresa Campaniço on


First the questioned was not defined very well by the interviewer, second the way how the problem was declared did not cover all the possible cases!

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.