- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
No communication of any sort is allowed, except for an initial strategy session before the game begins!
Admin
...
Read. The. Problem.
Admin
Admin
Once they have had a chance to look at the other hats, the players must [ (simultaneously guess the color of their own hats) OR (pass) ]
or
Once they have had a chance to look at the other hats, the players must simultaneously [ (guess the color of their own hats) OR (pass) ]
This is the source of all the misunderstandings.
Admin
Put on A, have sex with 1. Remove A, put on B, have sex with 2. Turn A inside out, place it over B, have sex with 3.
In this fashion, the man only has to wear 2 layers of condoms for the final sex act, rather than the 1st and 3rd.
Your penis is welcome.
Admin
Admin
19 minutes is not optimal.
Admin
Admin
Bullshit. Guy 1 has 2 condoms on. He infects the inside of the condom which he put on first. The girl infects the outside of the condom he put on second. So the outside of the condom he put on first is "clean" and the inside of the condom he put on second is "clean". Guy 2 puts the condom on that Guy 1 had on second, so the inside is "clean".
This is all in theory of course. The logistics would be... messy at best.
Admin
By which I assume you mean:
I suppose if you were being careful and wanted to preserve the original state of grain and chicken, some serialisation/deserialisation is needed.
Of course the other clear solution is to seek the assistance of XML and ensure that grain, chicken and fox are elements defined within different namespaces.
Admin
I remember a client who refused to follow the installation instructions, insisting that the flags to "cpio" that we supplied were wrong. He repeatedly used the flags which he "knew" were "right". Of course, every time, it failed to read the tape. He insisted that there was something wrong with the tape, and badgered the sales department to get us to make a "tar" tape instead. (Manually, of course, since all the automated scripts made a "cpio" tape.)
Unfortunately, it was something like a $20K sale, and sales decided "the customer is always right".
Admin
So, after dozens and dozens of answers explaining in excruciating detail why the above gives you a 75% chance of winning, you still refuse to budge from your "first instinct says it's 50%, so it must be 50% despite all evidence to the contrary"? And people say these questions are of no value. You've certainly eliminated yourself from the possible pool.
Please explain how the above chart, which shows 6 "wins" and 2 "losses", for a 75% chance of winning, is "wrong".
Admin
Admin
Re-read the specs. One wrong answer from anyone, and you lose.
Admin
Except, those aren't incredibly tough questions.
Also, the mass of a 747 can be estimated by towing the plane via a spring scale at constant acceleration (then perhaps at constant speed to measure any friction and compensate). I wouldn't be surprised if that's actually done at airports all the time.
Really, if I ran a software company, I wouldn't hire anyone who couldn't provide answers at least along those lines. There's a lot more to a candidate's qualifications, of course, but it's a good way to weed out the majority of people who grossly overestimate their own intelligence and academic background.
Admin
Find the population of an average sized city and find how many barbers there are in town (yellow pages). Extrapolate based on the population of the entire state.
There are probably better answers, but for most of the "estimation" riddles, taking a sample and expanding is a good safety net answer.
Admin
Not sure if something like this has been suggested yet, but a rewording of the hat problem 'might' clear up some of the idiocy... oh who am I kidding.
Three players enter a room and are told that a red or blue hat will be placed on each person's head. The color of each hat is determined by a coin toss, with the outcome of one coin toss having no effect on the others. Each person will be placed in seperate room before their hat is placed on their head. Once all hats are placed, each person views a photo of the other 2 people with their hats on.
No communication of any sort is possible, except for an initial strategy session before the game begins. Once they have had a chance to look at the other participants' hats, the players must guess the color of their own hats or pass, they do not know the other participants' answers. The group shares a hypothetical $3 million prize if at least one player guesses correctly and receive absolutely nothing if anyone guesses incorrectly.
What strategy would you use?
Admin
Admin
or, as this is Microsoft: "It seems like you want to get up. Do you need assistance?"
Admin
The answers are easy.
Admin
Hmm... My scale says the Earth weighs about 3 pounds.
Given some of the answers given here to the "hat problem" (insisting it's 50%; giving "solutions" which are actually worse -- as low as 12.5%, and I think one was zero; and downright cheating), I think it's obvious that such questions might be useful in weeding out such candidates.Admin
-Chicken/fox/grain
Leave the fox with the grain or just throw the chicken across the river.
Admin
Barbers are regulated by state statutes (in Minnesotta, they're covered under Chapter 154). I would contact the state Board of Barber and Cosmetologist Examiners, with whom all barbers must registers, and ask them for a count. I suspect they can give a speedy answer, and that while their answer will exclude any rogue barbers operating illegally, it will still be more accurate than any estimates or Yellow Pages methodology that I might otherwise try to hack together.
Admin
WTF? Either interpretation has the same result.
Let's say you read it as [ (simultaneously guess the color of their own hats) OR (pass) ].
Everyone that is going to guess a color must do so at the same time. If you don't say anything, you are implicitly passing.
If you read it as simultaneously [ (guess the color of their own hats) OR (pass) ]
Once someone guesses the color of their hat, everyone else has effectively passed (either by simultaneously saying "pass" or by not saying anything).
The only other possibility is someone who has a poor grasp of English and time-based logic, assuming that you can pass at any time before or after the other people SIMULTANEOUSLY give their answer.
Admin
In Serbia, manhole are usually round for waterworks or sewer conduits and rectangle for telecom or electrical conduits. As for most of Europe.
In Serbia, manhole cover theft is big business because of large amount of lead and copper used in production of covers ...
And, the right answer to the puzzle really is: "Because of constant diameter, so cover can't fall into manhole".
Admin
Admin
Are you sure they differentiate between hairdressers, barbers, and cosmetologists when they compile your numbers? Just because someone is certified, doesn't mean they are practicing. I could have a barbers license, but be working as a mechanic. Does the interviewer care about me?
Admin
See also http://en.wikipedia.org/wiki/Reuleaux_triangle and http://en.wikipedia.org/wiki/Curve_of_constant_width
Admin
Admin
I am using the state's definition of barber in finding my response, and as I cite my source, I believe that is obvious.
However, I would like to point out that the meanings of these different words is blurry:
It remains my belief that error due to nonpracticing or illegally practicing barbers will be smaller than error from any other attempt to estimate the number of barbers based on population. Note that many factors can contribute to the distribution of barbers: affluence, proximity to a barber school, proximity to a metropolis across the state border, reputation of various barbers, number of Wal-Marts present, hair style preferences in the community, age of community (many very young or very old do not get their hair cut professionally), etc.
I'm open to the possibility that there's a better way, but I haven't seen it yet.
Admin
substitute poor grasp of english with different understanding of a non-formally stated case, and you've got it. case 1:
(all players) [ (all guess at once) || (pass [all remain silent] ) ]
in this case no one may remain silent. (cause that is the way this case is understood by the applicant.)
case 2: (apparently the correct understanding)
any player [ (guess) || (remain silent) ]
Admin
Admin
-Sky is blue during most of the daylight hours because of its refractive index. Easy. (Not sure why this would be an interview question, unless just to establish a baseline of communication and comprehension ability).
-What tools do i have? Do I have a list of all major objects in the solar system with their rotational velocity and distance from the sun? Do I have the weight and mass of an arbitrary object in the gravitational field of the earth and also the mass of the earth? You just want me to guess? I know the circumference of the earth and the order of composition of elements in the crust and mantle, if I can get the density of those then I can guess. (This question used to determine what questions an interviewee will ask before trying to get an answer, and also how an interviewee will respond to an impossible task)
-How many people are there in the world? Right now? Do you also want the rate of population increase? And the acceleration of population increase? The jerk of population increase? (jerk is technical term) And I assume you mean living on the surface of the earth, not buried in the world... (Tests applicant to see what they will do with a trivial problem)
Admin
No, he was looking for someone that can "act" best.
Admin
Admin
Admin
I already heard this one. At first, I came up with "have one person say 'red', and you have a 50% chance of winning". But someone else pointed out that "if you see two of the same color, say the opposite, otherwise remain silent" gives a 75% chance. That didn't make sense from an intuitive standpoint, so I made a chart and I saw that 6 out of the 8 possibilities did result in a win. So my answer is "if you see two of the same color, say the opposite, otherwise remain silent".
How'd I do?
Admin
Admin
Admin
But if people were to understand odds they probably wouldn't bet away their money in a casino, leaving no money for the casino.
Admin
Admin
Admin
Admin
Knowledge and understanding are rarely tied to motivation and actions. Desire and greed are more powerful. Knowledge and understanding may influence HOW someone does irrational things, such as finding casinos with better stated odds.
And yes there is such a thing as a professional gambler, someone who understands odds, people, and the game enough to make money; but these people make money at the expense of other gamblers, not the casino (again, over the long term).
captcha: paint (as in 'in the paint')
Admin
Dude! You guys got perfect programmers in your programming department? That rocks! You're right, I'm not worthy of working with you. I would love to buy whatever software you produce though, because, with perfect programmers, it is surely awesome! Oh man, I can't wait! What's your website?! I wanna check you guys out so hard! The meetings you guys have must be quite a sight, what with every single idea being perfectly communicated and perfectly understood 100% of the time, with out any questions or misunderstandings, ever.
;-)
Admin
Admin
There are four things really.
Did I mention I love casinos? :)
Admin
Freaking brilliant! I can now do a Dykstra's algorithm in constant time because the number of nodes in the graph is fixed when I start the problem.
Used to take O(n^3).
I would suggest you get a refund from your university.
Captcha - burned
Admin
If I was presented with one of these fucking riddles on a job interview I would get up and walk out.
If an interviewer is too stupid to come up with a real-world what-if and has to resort to riddles, I do not want to work for them.
It's not a fucking game. When I've had to interview people I can do it just fine without asking "What have I got in my pockets?"
Job interviews are not mazes with cheese in them. Either interview people like a professional or become a puppeteer if you like watching people dance on a string.