Tech-Interview Riddles
An anonymous submitter writes "A computer engineering student at UC Berkeley has made a comprehensive archive of riddles from technical interviews. Very challenging and loads of fun. Also useful for interview preparation."
I used to put this one on my programming tests. It's actually shocking how many people get it wrong...
You are writing a parser that reads a C program and translates all the variable names into new names of the form "VAR######", where ###### is an integer incremented for each unique variable name. Discuss what is needed for the case where the C program already contains a variable of the form "VAR######".
Sometimes it's best to just let stupid people be stupid.
Wear one condom. Wear the 2nd one outside the first one. Have sex with 1st woman.
:-)
Remove the 2nd, outer condom, have sex with the 2nd one with just one condom (the 1st one).
Fold the just removed condom inside out and wear it over the 1st one. Have fun with the last woman.
Who says that you can't use "Economic engineering" knowledge on bed,
If this is the correct answer, then I would be at an unfair disadvantage answering this question. Because I *listened* in sex ed when they said that using two condoms at the same time was dangerous. It's too likely that air will get caught between the condoms. Some parts will stick and some parts will stretch, leading to two broken condoms.
There are no trails. There are no trees out here.