5 kyu
Tracking Hits for Different Sum Values for Different Kinds of Dice
582 of 697raulbc777
Loading description...
Mathematics
Statistics
Probability
Permutations
Data Science
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.
Haskell translation
Approved by someone
Nice kata, but it lacks the tests with larger values, at least 20 dice of 20-sides.
Nice kata!! It has been real fun solving it.
This comment has been hidden.
read this for more info:
https://docs.codewars.com/training/troubleshooting
Hi @MikhailD1711 and welcome to Codewars.
I just saw that on your profile you have now completed this kata - congratulations (and really nice solution by the way!). However, in future please don't use the Issue tag for such questions about your code; the Question tag is for this purpose (Issue is for serious problems with the kata itself).
Please close your own raised Issues/Questions once you've resolved your problem, to avoid the moderators extra unecessary work.
Good luck on your Codewars journey, cheers
Very nice kata, I have had a great time solving it!
A suggestion: Could you please replace these two lines of text a single one? Since there is no assertion after the first line, the output is rendered red, as if something went wrong.
Done! Thanks for the observation and for your time solving this kata.
Guys, help anyone who is not difficult. I don't understand the condition.What is asked to find in the task? At first I thought it was a possibility...I read it inattentively..
Not the possibility, instead the amount of arrangements.
Julia Translation
Great @depial. It´s approved +1
Cheers!
Python initial solution setup should just be
return []
Description should be language-agnostic
Done in this fork
very good kata ... but always timeout :( I really need to learn how to improve my code
Empty
it
blocks must be removed from tests.Done.
Node V 14. should be enabled
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
Done for Python.
Done for Ruby, in this fork
Hi Raul,
Some typos in the description:
Suposse
->Suppose
(start of 2nd §)Suposse that we roll... dice
6>Suppose that we roll... dices
(2 line after the previous)probabilities for each ent has to be 1.0000
->probabilities for each enD has to be 1.0000
number of dice, n
->number of diceS, n
cheers
Done. Thanks for your observations as always.
:+1:
Awesome Kata! Your other Kata helped me out, still new to coding. Thanks!
Glad you liked it. Thanks for your time solving it.
I'm trying in Ruby and I believe some tests expect wrong values (6 tests 3 combinations: n=2, s=20; n=4, s=10; n=4, s=12). Can you check your code?
Ok. I found the bug. The problem was for dice with ten sides ans above. Let me know if everythinhg is working well.
Confirmed the fix. Thanks :)
I had the same bug in the ruby version in the next kata of this one. I'm correcting it.
Ok. I think it's fixed the ruby version for "Find the Most Probable Sum Value or Values, in Rolling N-dice of n Sides". I appreciate a lot your feedback.
Confirmed the next kata in Ruby. No problem, thanks for authoring katas :]
For that one in Python, can you change tests
See my incorrect but accepted solution and its comment for the reason.