Ask questions that are open-ended. Don't ask them something with one right answer - give them a scenario and ask them to show you how they'd solve it. That is more realistic - if they know an algorithm that helps, they'll use it. If they don't, they'll try something else. Either way, you are hearing their answer, not trying to lead them to "the" answer.