Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks for the kata, I learned a whole new topic and for the first time I hear about Polish notation. Interesting to know.
Python initial code:
What is not clear there? You can argue about not having to write a function and code like in almost every other kata, but what you should do is written in the description.
While critique of descriptions is a fair thing, I would sincerely recommend adjusting your general attitude a little bit.
Please adjust the description so it is clear what exactly is expected to be a code for testing. I spent (as many other solvers here) many more minutes figuring out what is wrong with the code. While the only issue here was that you do not expect any code, just "STRANGE_STRING= ....".
Not fair, really. Description level almost as bad as daspreuße's. He is the kind of bad kata description. You may be his heir soon.
vaaaaaaaax! Don't I recognize you, whatt47? It seems like you leave a stream of havoc wherever you go.
Could you elaborate on the "expects us to hardcode wrong practices" part?
@daspreuße, man... Your katas are so badly broken. You are messy while writing instructions, your testing fails all over and specs for intended types are unclear, too. This particular kata expects us to hardcode wrong practices. I see no point doing these.
So many times I found you just copy things all over without any review or thorough revision what did you actually wrote.
From this very moment on I avoid your katas for good. It's not worth the time.
There is a mistake in the description: "Thus, the expected value of a random element from the matrix is 3.". Should be "473/6" instead of "3"
fixed
There's an issue with the description. The input is defined as "Two integers r and c representing the number of rows and columns of the matrix, respectively" but, in the provided example, an input of "11 5" somehow expects the calculation of a 12x6 matrix.
If you can't take the cocktail, maybe you should stick to lemonade.. Just remember, every great mixologist started with a simple recipe!
Btw, 6 kyu is no longer beginner level.
"fraction of sum of items / number of items" is literally the definition of the expected value of a random variable :) More or less.
Definitely not the kata for 6 kyu. The amount of optimization it needs in order to run effectively is far beyond the beginner's knowledge of Python.
And forgive if I am wrong, english is not my native language. But I find the description for the task quite misleading. The goal in the end is to return a fraction of sum of items / number of items, not to estimate"the expected value of a random element from the matrix".
This comment is hidden because it contains spoiler information about the solution
It is not an issue, this is how Codewars works.
Loading more items...