Home Page
Message Board
Search
Events
Sports
Schedule
Future Schedules
Opponent Boards
Player Interviews
Player Q&As
Bracket Challenges
Social Boards
Football
Basketball
Fans
Fun Features
Post of the Day
Best of...
Visualizations
Store
My Account
Login
Sign Up
Sign up, and CougarBoard will remember which categories you want to view.
Sign up
It appears that your browser timezone is different than what is currently being used. Do you want to switch to UTC?
Change timezone
Report problem with this ad
Start a related thread
Start a related poll
Reply via Boardmail
Jan 13, 2025
11:18
:03
pm
2ndTrombone
All-American
Serious, Clark?
Start a related thread
Start a related poll
Reply via Boardmail
Report problem with this ad
2ndTrombone
Bio page
2ndTrombone
Joined
Sep 20, 2002
Last login
Jan 15, 2025
Total posts
25,345 (91 FO)
Report problem with this ad
Messages
Author
Time
How fair of a technical interview question for problem solving is this:
cheezedawg
Properly rated
Jan 13, 9:57pm
Answer: potato
Ragnar Danneskjold
Jan 13, 9:59pm
Answer: 42
cougarmeister
Jan 13, 10:03pm
42 potatoes
cheezedawg
Jan 13, 10:03pm
I think this is what you’re looking for
Lifi
Jan 13, 10:03pm
Hmmmmm.....is that like that Pythogorean theorom thing?
TNT
Jan 13, 10:03pm
RE: How fair of a technical interview question for problem solving is this:
DiamondMo
Jan 13, 10:04pm
I don't think the question is worded properly. What does "Using the following function," mean?
CSoul
Jan 13, 10:04pm
How can I word it better?
cheezedawg
Jan 13, 10:06pm
What are you looking for? For them to use the output of that function to return
CSoul
Jan 13, 10:07pm
Write a function that uses that function
cheezedawg
Jan 13, 10:07pm
Maybe “write a new function that uses the following function to return a 0 or 1 with equal probability”
cheezedawg
Jan 13, 10:07pm
Yes, that would make sense.
CSoul
Jan 13, 10:08pm
I think it's clear IMO
SalmonOfCapistrano
Jan 13, 10:08pm
What the heck? That looks like Egyptian Hieroglyphics
TNT
Jan 13, 10:09pm
That’s perfect
cheezedawg
Jan 13, 10:09pm
Salmon, you’re hired
flyonawall
Jan 13, 10:12pm
I wouldn't be surprised if there's something off by one. It could be clearer
SalmonOfCapistrano
Jan 13, 10:13pm
Rand() only returns positive integers in all the languages I know
CSoul
Jan 13, 10:13pm
yeah, and even if that weren't the case I wasn't even sure about %. I think
SalmonOfCapistrano
Jan 13, 10:17pm
You could also just be lazy and do this
CSoul
Jan 13, 10:22pm
RE: You could also just be lazy and do this
SalmonOfCapistrano
Jan 13, 10:25pm
Perl obfuscation contest here we come
CSoul
Jan 13, 10:26pm
That would work too. She never got there. After a little coaching, she ended up looking in vain for combinations of bits
cheezedawg
Jan 13, 10:33pm
That’s what confuses me to. Using the function, write a function? Like a new function that calls yours? Or do you want
Mike Honcho
Jan 13, 10:07pm
I agree that could be clearer. That’s not what tripped her up today though.
cheezedawg
Jan 13, 10:08pm
if the candidate listed *any* CS courses on their resume, % is fair game
SalmonOfCapistrano
Jan 13, 10:05pm
Chick Studies?
TNT
Jan 13, 10:06pm
Sure, but also depends on how many years removed. I think I've used % in code only
CSoul
Jan 13, 10:06pm
Serious, Clark?
2ndTrombone
Jan 13, 11:18pm
If you are in web software development and not hardware, mod is almost never used. It's sometimes used in
CSoul
Jan 14, 8:28am
Adding some more thoughts... I'm actually very against holding one thing against
SalmonOfCapistrano
Jan 13, 10:22pm
Yeah I didn’t see that a disqualifying, but rather something that I would like to see how she can overcome it or adapt
cheezedawg
Jan 13, 10:34pm
RE: How fair of a technical interview question for problem solving is this:
Lifi
Jan 13, 10:17pm
If rand() returns a value between 0 and 1, mod 5 can be ignored.
Cosmo Kramer
Jan 13, 10:31pm
I would have liked that answer if she articulated it like that. In most cases, though, rand() returns a number in the
cheezedawg
Jan 13, 10:40pm
With questions like that you just have to state your assumptions and give your
Cosmo Kramer
Jan 13, 10:46pm
yeah. Here it crossed my mind that rand() could be the one that returns a double
SalmonOfCapistrano
Jan 13, 10:50pm
Java and python random functions are 0 to 1. The way the question was worded,
cruoti
Jan 13, 11:16pm
I’d probably respond with this
kapcreations
Jan 13, 10:35pm
Or even better
kapcreations
Jan 13, 10:37pm
Or just to be a jerk don't actually use the output of that function but call it and store it in
CSoul
Jan 13, 10:39pm
That is exactly what I thought when I saw the question. Saves time, gets the job
Cosmo Kramer
Jan 13, 10:50pm
This was the first answer I came up with. Why bother using a function that
cruoti
Jan 13, 11:19pm
That was my first thought.
NumbersGuy
Jan 14, 6:51am
We do a lot of asm (although it’s ARM not x86) on this team so we’d like that.
cheezedawg
Jan 13, 10:42pm
RE: How fair of a technical interview question for problem solving is this:
cougfanblue
Jan 13, 10:37pm
RE: How fair of a technical interview question for problem solving is this:
cheezedawg
Jan 13, 10:41pm
a few months ago, my son (3rd grade), casually mentioned that "a teacher said
SalmonOfCapistrano
Jan 13, 10:46pm
But also, cougfanblue is "Vice Jefe" on a message board, so...
benny1982
Jan 13, 10:52pm
RE: But also, cougfanblue is "Vice Jefe" on a message board, so...
cougfanblue
Jan 14, 5:57am
Report problem with this ad
Posting on CougarBoard
In order to post, you will need to either
sign up
or
log in
.
Report problem with this ad