6 kyu
"Shoot But As I've Seen It In My Imagination"
135 of 177raulbc777
Loading description...
Arrays
Mathematics
Algebra
Probability
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.
Python: added missing imports in this fork
approved by someone.
Nice mathematical kata.
ку
Ruby has some serious performance constraints.
yes, there is no reason (at least for a 6kyu kata) to press submit more than once due to overtighten constraints
Why? There's no reason for input to be this huge. (Unless you want to forbid solutions calculating the probability of each event in
O(n)
time which doesn't add much value to the task, IMO).Input generation could be optimized in Python.
Tests should explicitly import the test framework and solution in Python.
done.
Seems fixed (Python)
There is definitely something wrong with python kata. I tried to run other solution and no one could pass the tests. Every solution is raising time out error. I searched a little bit more and I found that My solution was almost 3 to 4 times faster than others. Please check and remove the issue. Any way, This kata is great nice work dude.
Duplicate issue.
Sorry, But I didn't get what you are trying to say. Could you please elaborate a bit more?
steffan153 raised the same issue before you did (referring to the earlier comment by me I would guess).
Yes
Lightened the tests, try again.
I thing there is something wrong with the tests. I wrote my code which is very much same as @Tyto code. But My code could not get thought the tests. How do I know? because I saw the solutions after sacrificing my points. After knowing that I just copied his code from the solutions and tried to run it. And guess, His code did not pass the tests too. So Do you have any idea what is wrong.
Duplicate issue.
(Raising comment below as issue so it becomes editable)
Yet another kata impossible in Python.
Lightened the tests, try again.
Is the python version working? It times out all the time.
I forfeited, unlocked and tried other people's valid solutions (even the sensei's), but I still get an execution timed out error.
Same with me Man
Lightened the tests, try again.
Works now, thank you!
Don't know if an issue, Typo in the description :
For a typo I would use suggestion.
Fixed! Thanks.
This comment has been hidden.
This comment has been hidden.
O_o
But it's actually
ABREVIATIONS
Thanks for this observation. Fixed!
o_O