Interview Questions: Call by reference and call by value

A common simple interview question is to explain the difference between “call by value” and “call by reference”. This refers to the way arguments are passed to functions. In call by value, a copy of the argument is made and given to the function so that any changes made to the argument affect only the …

Continue reading ‘Interview Questions: Call by reference and call by value’ »

Interview Questions: Detecting Palindromes

This problem is almost too simple to mention, but it has actually been asked of me in an interview, so I’ll go ahead and address it. Problem: detect if a given string is a palindrome. Be sure to ignore case, spaces, and punctuation characters. Solution: Start by setting references to the first and last characters. …

Continue reading ‘Interview Questions: Detecting Palindromes’ »

Interview Questions: Two Sum

In interviews for programming positions, it is common for the interviewer to present a small programming problem and see what kind of solution the candidate comes up with. These problems help to reveal how the candidate thinks about solving problems, and also provide a chance to show basic coding competency. These problems can also be …

Continue reading ‘Interview Questions: Two Sum’ »

Shelter 2

I just finished my first play through of Shelter 2 and I’m almost afraid to play it again. It’s a good game, but it hit me emotionally hard and made me cry enough that I don’t want to repeat the experience again too soon. In this game from Might and Delight you play the role …

Continue reading ‘Shelter 2’ »