6 kyu
Answer the students' questions!
204KH!
Loading description...
Algorithms
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.
Nice!
What am I supposed to do with answers that have the same number of highest common words with questions in it ?
i think there's no such cases ..
Same as anter69, but considering the number of tests, I concidere this an ISSUE, not just a suggestion!
Needs lots and lots of tests.
About anter69's suggestions:
info = ['this text', 'that text']
is already managed by the description withfind among information the UNIQUE string that has the highest number of words in common with question.
info = ['text text', 'no text']
is already implicitly managed with the description too: the answer should be 'text text'. But that is not tested for now. you'll have to choose either to modify the description or add those type of tests.Adding random tests seems a bit burdensome (if I want to make them meaningful), and I just don't want to spend much time on it... But if you have a (re)usable set of random tests, share with me and I will dump it in the test cases, as I can still edit the kata.
If you add random tests, you should then describe what to do with two answers that have the same highest number of common words with question.
Suggestions:
Nice kata!
My only suggestion is for the parameters, I think you have them backwards, and trhey might be btter named as
question
andpossible_answers
or something similar. :)But please! If you will fix it - don't ever swap parameters when you call the function. It will break current solutions.
Anyway - good, interesting kata =)
thanks for those remarks, but i don't understand "i think you have them backwards" so explain please
Parameter names are now reversed in the "initial solution", so it corresponds with the description.
I also updated the example test cases and the description a bit.
Plus, I restructered the test cases to make it easier to add more questions/answers. Feel free to add (a lot) more...
Cheers
HI everyone , i hope u will like this brand-new kata!
i'd also like if someone improves the look af my description & helps me find some intresting test cases
always open to suggestion ; thenx in advance :)
Cool, then I started rewording your description.
Next steps are adding random test cases and deciding what happens when more replies have the same number of occurrences; I would pick the first one, discarding the note in the description in which you say "order does not matter", but you will be the judge here.
Cheers :)