If it's so hard to find someone who can write ten lines of code, why does every job interview I see declare that they're not interested in me unless I have years of exerience in each of a half-dozen specialized tools and APIs?
As for the least common multiple problem, would you expect an efficient solution that computes prime factors, or would it suffice to write the following?
int leastCommonMultiple(int n1, int n2) {
return lcmHelper(1, n1, n2)
}
int lcmHelper(n, n1, n2) {
return (n%n1 == 0 && n%n2 == 0) ? n : lcmHelper(n+1, n1, n2);
}

I find it difficult to believe, but the reports keep pouring in via Twitter and email: many candidates who show up for programming job interviews can't program. At all. Consider this recent email from Mike Lin: The article Why Can't Programmers... Program? changed the way I did interviews. I ...