An interviewer recently asked me this question: given 3 boolean variables a, b, c, return true if at least 2 out of the 3 are true.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label boolean-logic. Show all posts
Showing posts with label boolean-logic. Show all posts
Sunday, May 27, 2012
Check if at least 2 out of 3 booleans is true
Monday, January 30, 2012
Subscribe to:
Posts (Atom)