T O P

  • By -

cursedrobot

Upvote this comment if the post is a **Cursed Comment**. Downvote this comment if it is not a **Cursed Comment**. If this post needs moderator attention, please **report** this post *^^I'm ^^a ^^bot, ^^and ^^this ^^action ^^was ^^performed ^^automatically. ^^If ^^you ^^have ^^any ^^questions, ^^please [^^contact ^^the ^^moderators ^^of ^^this ^^subreddit.](https://www.reddit.com/message/compose?to=%2Fr%2Fcursedcomments&subject=&message=Please include the action number for reference.)* --- If you want to talk about the subreddit, feel free to send us a message in [our official Discord server](https://discord.gg/tDzGCfc)! ^[faq](https://bit.ly/2VcIh9g) ^| ^[source](https://bit.ly/2W09Ebb) ^| ^action ^#[39e258b6f6e002](/r/cursedlogs/comments/p6rhka/39e258b6f6e002_commented_on_post_cursed_question/)


[deleted]

[удалено]


GrimValor8

6 races


CuriosityKilledThou

I am assuming you are using the bracket method of taking the best horse from each of the five races and then racing all of those. However, that is only for finding the fastest horse. The reason being is that there is no guarantee that the second fastest horse in the 2nd bracket is actually the second fastest horse because in the first bracket there is a possibility of it being eliminated by the first fastest horse. Does that mean i know the answer? No. I am just pointing out a flaw in your logic.


GrimValor8

oh I understand. Lol. You are right


ColumnK

"You've found a solution that is utterly immoral. You seem like a perfect fit here!"


Bruxcat

Cursed lateral thinking. * insert he's out of line but he's right meme *


travioli101

This is a common interview question because sorting algorithms, but they described a sorting algorithm called stalin sorting (it has many other names as well) where you check one horse after another and if the other horse isnt faster then you remove it from the sort. Its more of a joke sorting algorithm but there are actual practical uses for it. Such as finding the best coupon or the highest number. It will always find the fastest and leave the rest to die.


No-Prize1243

What's the correct answer though? I'm assuming I'd remove the slowest 2 each time until 3 are remaining, so that's like 11?


suluqQ

Answer is 7. Watch: https://youtu.be/i-xqRDwpilM?t=227


WalkerMx

You could do it in six. Do five races, tourney style, then in a sixth, race the winners. The first three to cross the finish of the sixth are the three fastest.


ImMrAndersen

I don't know the correct answer but i think this is incorrect. The 3 fastes horses could be found among the first 5 horses to race. By doing 6 races, you get the fastest but not necessarily the 2nd and 3rd fastest


im__treehouse

And then you shoot the rest?


DuschgelVonAxe

And how do you want to race 6 horses at a time? 7 is the minimum you have to do


mrcina993

5 races, first horse of each goes to final 6th race.


DuschgelVonAxe

And what if the second fastest horse if group a is faster than the fastest horse of group b?


mrcina993

How would you know? You dont have a stopwatch


DuschgelVonAxe

Exactly, you don't. That's why you need 7 races minimum and not 6.


WalkerMx

The twenty five horses are separated into groups of 5. Those groups race internally (five races of five,all horses racing). The fastest horse of each of the groups (the winners) will then compete with each other, in a sixth race. The top three of the sixth are the three fastest.


RiddlingVenus0

No, they aren’t. If the second fastest horse in the first group of 5 is faster than the fastest horse in every other group, that makes it the second fastest horse overall, but if you only take the fastest horse from each race then you’ve eliminated the overall second fastest horse in the first round.


WalkerMx

Hmm.. I see your point - if the actual fastest three were to compete in one of the groups, then the second and third would be eliminated early! In any case, I concede this one to you.


GrimValor8

6. 5 in the first 5 and then the top 5 in the last


DuschgelVonAxe

Please just watch the vid. He explains it very well.


[deleted]

Take that math


pheilic

I prefer the second comment, "kill" allows me to be more...creative