7 kyu
Triple Crown
294 of 331keczanilles
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Tricky Kata! not as easy as it seems! Every newcomer like me should practice! Thaks keczanilles
C# translation - please check and approve! By the way, nice Kata. :)
approved
IMO 6kyu, but too late ...
Thank you very much! I got feedbacks that it is hard for 7 kyu but then it will be a hard 7 kyu kata.:)
won't it make more sense to randomize the players' names or at the very least the order of the players?
stupid solutions like mine (in my opinion) shouldn't be able to pass the tests
Thank you for the feedback and the suggestion! It was meant to be around 7 kyu so I thought it is difficult enough but maybe I will try to work on randomising the names!:)
good point, but i dont think randomising the order of the names (or the names itself) is makes the kata harder
my thought process was to limit the amount of hard coding needed to solve this
but then again i don't know NFL so this could be my ignorance on autopilot
It's not clear whether the dictionary is guaranteed to contain all 3 keys. This is true for random tests, but not for sample or fixed tests.
Thank you, I have modified it: Now you will receive a dictionary with the following keys (will always contain each) and added a note at the end which declares that in examples and fixed tests there are 2 keys but you will receive 3.
Change the sample and fixed tests to follow the specifications. "There's a note in the description" is not an excuse for laziness.
I have changed the fixed tests with 3 keys and deleted the note.
The expected result for such cases is indistinguishable from normal function output.
Can you please specify what do you meant? Thank you.
What's going to happen if there's a player with the name
"None of them"
?Oh I see, the names are given, they will always be Cooper Kupp, Justin Jefferson and Davante Adams.
Well, if the keys are always the same, and they do not conflict with this message, then it's probably fine to leave it as is.
There should be a fixed test where one of the competitors shares 1 or 2 values with the competitor whose stats are the highest.
I added it to the description as well and now I have a fixed test where it demonstrates that it should be 'None of them' since they are sharing the most in 1 or 2 category.
There're still no fixed tests for such cases.
Maybe I'm wrong but I thought this is a fixed test as you suggested:
Since they share the receiving yards and the receiving touchdowns being each 1800 and 16 respectively.
This part of the spcification should also be clearly stated in the description, not just shown in an example.
Cheers
"Example with two receivers sharing values in at least one category:" I have this part in the description with a code and a comment which specifies the situation. But if it is not clear enough let me know.
"Sample tests" and "fixed tests" are 2 different things. You've updated the former, but not the latter.
I think I have updated it everywhere now with 3 keys as well.
All
it
headers have the same message:"None of them should equal None of them"
.Thank you for your comment! the message is f'{solution} should equal {solution} so if you have it incorrectly it will say 'Wrong answer' should eqaul 'None of them'. It is because other cases than None of them are quite rare so most of the answers is 'None of them'
Hello, if it is solved can you please mark it as resolved? Thank you very much!:)
You haven't fixed anything, what are you talking about?
But not all headers have the same message, it depends on your solution it will say 'Your answer' should equal 'Right answer'
I have changed it so it will show what the dictionary are and what should it equal to. Is it better?
It never worked that way.
You're only making it more misleading.
it
headers should not be used for displaying expected value at all.So what should I write there then because I dont know really. I saw a lot katas with my first idea for it and a lot of katas with my second idea. If you can tell me what would be good it would be much appreciated thanks.
I have updated it again, is it better?
There're way too many tests.
Thank you for your comment! I thought it is necessary because there is quite a low chance to have the most in every category so I thought in 1003 test there will be at least one other than 'None of them' so you cannot solve the kata with just return 'None of them'
Then maybe you should increase the probability of award-winning players coming up? Currently 97-98% of the tests expect
"None of them"
which is way too low.Okay, for sure I will work on this! Thank you! I will let you know when it is ready.
So i updated it, there are only 3 receivers left and only 100 random tests. The probability is around 10% for getting a name which I think is okay for the story of the kata since getting a triple crown is quite rare.
5-15% is fairly low. There should be 200 or maybe 300 tests.
The kata backstory has nothing to do with the quality of the input generator. Especially, when it is possible to generate inputs with a guaranteed winner easily.
I modified it to 250 random tests if its okay.