How would you test a coin-operated Coke machine?

Oct 31, 2012 20:21

What is your favorite interview question*? Could be one you love to ask candidates, could be one you've been asked yourself.

I'm particularly interested in the real curve balls, the questions that stop the candidate short and make them think.

For funsies (did I really just type "funsies"?), I will answer your questions**, provided I see the ( Read more... )

Leave a comment

Comments 8

Brain Teasers... anonymous November 1 2012, 07:05:12 UTC
I think you gave me a version of the coke machine, but added that it took credit cards and connected via wifi to the internet to process sales... and it was interesting, this got me thinking about the different issues one could encounter with different versions of 802.11x... not only did that fill our time up but when Steve came in for his leg of the interview it spilled over into that as well. :D ( ... )

Reply

Re: Brain Teasers... georgmi November 1 2012, 16:23:09 UTC
Hmm. What do they mean by "the first character to appear twice"? Is it the first character that has a duplicate, or the first character that is a duplicate?

For example, in the string "abba", 'a' would meet the first case and 'b' would meet the second.

For the first case, declare a temporary variable, 'search'. For each character in the string in order, put the character in 'search' and walk the rest of the string looking for a match. When you find the match, Robert is your parent's male sibling.

For the second case, declare two temporary variables, 'search' and 'found'. For each character in the string in reverse order (start with the last one), put the character in 'search' and walk the rest of the string backwards looking for a match. When you find a match, put the character in 'found' and move to the next character. When you have finished the entire string, the character in 'found' is your answer.

Obviously, you'll have to account for the case where no match is found, but that's pretty trivial.

Reply

Re: Brain Teasers... ext_1473387 November 1 2012, 16:54:25 UTC
Oh, that was another constraint, you can only walk through the string once.

Reply

Re: Brain Teasers... georgmi November 1 2012, 17:07:04 UTC
So basically they're looking to see if you happen to have the one arcane piece of knowledge that lets you perform a useless operation in a degenerate environment. Assuming that piece of knowledge exists.

At the point where they had closed off the last thing I could think of, I would say, "that's the best I can do, but it's going to be distracting me the rest of the day if I don't get closure. How would you do it?"

Reply


tylik November 1 2012, 10:39:03 UTC
While I'll tend to throw a puzzle question near the end of the interview* my favorite questions often were project planning and organization ones - here's a vague outline of a project, you have just been hired in such and such a role, with such and such headcount, tell me what you do. And then I keep asking questions about various areas as they come up. (But then I was usually looking for people with project management skills in addition to their technical skills. And yet, I'd totally have them coding on a board in the middle of the question. Fun times.)

* "How would you design an alarm clock for members of the ARRP - keep in mind that a lot of people might be having vision or hearing problems, so it should be accessible without insulting them by implying they need something accessible?"

Reply

georgmi November 1 2012, 17:13:06 UTC
Let's see, big numbers with adjustable brightness (and maybe an auto-dim feature that accounts for ambient light), a higher-quality speaker(s) with a decent amplifier (remembering that this is an alarm clock, not a hifi), and a volume control that goes up to eleven. Big, friendly buttons and dials. Sturdy, because alarms clocks get hit hard by half-awake people.

Then market it to the general public, not to seniors specifically. Because those are all features I was looking for in an alarm clock when I was twenty-five.

Reply


anonymous November 1 2012, 16:41:52 UTC
I used to ask the soda machine question as well in test interviews and it does reveal a lot. Nowadays I often ask people to test an elevator. I frame it similar to "New building with a new elevator. You work for the building owner. You don't know what testing the manufacturer or contractors did, if any. Prior to letting anyone ride in it, how would you test it and what would you test for?" There are lots of different dimensions that could be covered which is why I like it.

Later -
Ken

Reply

georgmi November 1 2012, 16:55:18 UTC
Hmm. I generally prefer a problem where the tester works for the manufacturer; the user-acceptance test scenario blocks off too many interesting classes of test--I want to see destructive stress tests, too. :)

Reply


Leave a comment

Up