Sign up, and CougarBoard will remember which categories you want to view. Sign upIt appears that your browser timezone is different than what is currently being used. Do you want to switch to UTC? Change timezone
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 16, 2025
Total posts
71,428 (17,979 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.