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

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." :-)




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

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

Search: