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... )
Comments 8
Reply
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
Reply
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
* "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
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
Later -
Ken
Reply
Reply
Leave a comment