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’ »