5 kyu
Find the Most Probable Sum Value or Values, in Rolling N-dice of n Sides
160 of 202raulbc777
Loading description...
Algorithms
Mathematics
Statistics
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.
python new test framework is required. updated in this [fork](https://www.codewars.com/kumite/662512035b2f14000f07cc16?sel=662512035b2f14000f07cc160
Approved!
Nice, funny and challenging kata, congratulations.
Python initial solution setup should just be
return []
.
Node V 18. (
mocha + chai
) should be enabledRuby 3.0 should be enabled (Refer this & this for more detail)
Ruby 3.0 enabled in this fork
Description should be language-agnostic
The given range should mention whether the lower or upper bounds are inclusive (`'tetrahedral'[1, 4], ...)
Empty
it
blocks must be removed from tests.Done in latest fork
i m having a trouble with exit code ,i used import.product in my code ,its passing all the tests just showing one error ,exit code ,please help
Approved with the average
5 kyu
:)I tried making this available in Python 3.4 and 3.6 by changing
print
. The solution validated in the editor, but still not available in the trainer :/I was able to make Python 3.4 and 3.6 available :) I think there's something wrong with caching. I added an extra line to "Complete Solution" and republish succeeded. Then I removed the extra line. I got a hint from @zebulan's comment in Codewars/codewars.com#761 about adding
#
.My brute force solution managed to pass the tests. Was it your intention that some subtlety would have to be employed? Another enjoyable exercise, thanks.
I used brute force algorithm too. This kata belongs to a series of stats ordered by increasing difficulty degree. Glad you liked it.
Can you link the further kata please? I like this serie, especially since nice formula are involved.
I was preparing it but still not published. I'll do it in two weeks.
I disagree with some results you expect :
Can you please explain where (if?) I'm wrong ?
edit : Haven't you consider 12 as "
different_combinations_for_sum
" for all ?You are completely wright. I don't know why on earth a 12 was where the maximum number of hits per sum value should be. You'll see it when you submit your solution. Thanks for your good solutions and observations and specially for your time solving this kata.
Fine. User's test cases need also to be fixed.
Your suggestions are welcome. What do you observe that should be fixed?
Seems those "user's test cases" are also fixed now. Good job!