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