News for hackers. Stuff that matters.
Re:Can (a ==1 && a== 2 && a==3) ever evaluate to true? by thsowers on Tuesday January 16, 2018 @02:42PM (#16161558)
> Very few people are going to pass that test.

Agree that this isn't a reasonable "normal" programming mistake to run into, but I think the question may be used for seeing how candidates approach a problem that they don't know how to solve.

I doubt the interviewers are looking for someone to get this question 100%, and more likely looking for how candidates would deal with a problem they haven't been confronted with before that seems unsolvable. Does the candidate just say it's impossible or a trick? Or do they double down and try to think of what could possibly cause this and offer up some possibilities?

Re:Can (a ==1 && a== 2 && a==3) ever evaluate to true? by mixmastamyk on Tuesday January 16, 2018 @04:22PM (#16162744)
That’s the ideal, but they are typically thrown out when you have ten candidates to interview and so becomes one more binary filter.