ruby-jokes / job_interview

A gem for job interview type problems
http://ruby-jokes.github.com/job_interview
GNU General Public License v3.0
428 stars 50 forks source link

A fox, a duck, a pond #1

Open canweriotnow opened 12 years ago

canweriotnow commented 12 years ago

Implement the duck in a pond with a fox question.

canweriotnow commented 12 years ago

Dammit, this involves real math.

joelparkerhenderson commented 12 years ago

def fox_duck_pond "Yes because most ducks can take off nearly vertically from either land or water. :) " end

maxwellE commented 12 years ago

I have never heard this one.

canweriotnow commented 12 years ago

It's actually way more complex that the current examples, and apparently pops up on job interviews.

http://www.mathrec.org/old/2003jul/solutions.html