Hacker News new | past | comments | ask | show | jobs | submit login

Because "Email us your answer to ZW5naW5lZXJpbmdAcm9ja3RoZXBvc3QuY29t" with no context as to what that means - on a SQL problem - isn't bullshit?



And "all horses run at constant pace"? People are reading too far along skipping this thing - I mean, what's the point in finding the fastest one when they all run at the same pace?

For context, here's the actual wording from the article:

  There are 25 horses and a single race track. The
   track has 5 lanes. Your job is to find the fastest 3 
   horses assuming you don't have a stopwatch and all 
   horses always run at a constant pace. What’s the 
   way to find the fastest 3 in the fewest uses of the 
   track.


That doesn't mean that all the horses run at the same speed - it just means that an individual horse doesn't speed up or slow down while running - if its average speed is 17.2 MPH, it runs at 17.2 MPH for the whole course.


Yeah, I thought of that - but do people look at average speed when timing a race? I was reading the whole sentence in "... you don't have a stopwatch and all horses run at a constant pace." :-)


It's an engineering perception test, like those math problems on billboards that are actually pre-screening interview questions.

I've been around that sort of text long enough to know exactly what I'm seeing and respond accordingly. They might be looking at it like that.


I got it on my first guess, but it's still completely unrelated to the problem at hand.

The "25 horses" question is much less useful, but gives you an idea of how the candidate approaches a problem. Getting the right answer is great, but seeing that someone understands the concept of combinatorics or some kind of process of elimination is much more valuable.

You really want a technical question so that you can see someone CODE the solution, or better yet, give them some task to do that's apropos - that part of the argument is fair. In past companies we've done all three, weeding out terrible candidates with the coding questions, weeding out mediocre candidates with thought-process questions, and selecting only the best with a programming simulation.

(echo 'ZW5naW5lZXJpbmdAcm9ja3RoZXBvc3QuY29t' | base64 -D if you're curious, and the answer to the horse problem is 7 IIRC)


Nope 6, 5 races aka 1 for each horse with photo finish + 1 with the winners of each race to calibrate the first five races.. ;)



Consider the case where the three fastest horses are raced together initially. My lowest is 7.


Then they would be closer to the fastest horse in there race than any of the horses in the 6th race. Think of it as a calibration step so you can find the positions of every horse by comparing how close they where to the finish line with how close the winner was to the finish line in the final race. (adjusting for a fractionally shorter race as in you don't know it took an minute or an hour but with 98% of the time they got to x so if they had been in the 6th race they would have ended up at y.)

PS: I am treating this as a real world trick question, if your talking about a virtual world where the only information is a horses rank then yea you would need a 7th race with 5 horses assuming no ties.


I'd be surprised if a quality candidate were confused by base64 encoding.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: