Sign up, and you can make all message times appear in your timezone. Sign up
Jan 13, 2025
9:57:26pm
cheezedawg Properly rated
How fair of a technical interview question for problem solving is this:
Using the following function, write a function that returns a 0 or a 1 with equal probability.

int random() {
return ((rand() % 5) + 1);
}

Like most of the interview questions that I ask, I’m not looking for a specific answer, I just want to see their thought process in identifying problems and coming up with solutions to those problems. But a candidate today quickly got lost in the weeds on this and I want to make sure I’m being fair. Maybe the main problem was that the candidate didn’t know what the % operator did.
cheezedawg
Bio page
cheezedawg
Joined
Oct 4, 2007
Last login
Jan 27, 2025
Total posts
71,630 (18,022 FO)
Messages
Author
Time
Jan 13, 10:03pm
Jan 13, 10:03pm

Posting on CougarBoard

In order to post, you will need to either sign up or log in.