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.
I wish there was an easier way to do this
I'll change the wording, fixed
I'll mark it as solved for now
Thank you for pointing these out
Fixed
Fixed
I'll add
I'll add
myscore
is added to scores at the end in order to solve with the solve() function in the full test cases. Maybe I'm missing something?Global Variables used as returns fixed, No renaming standard library functions fixed, Useless code fixed, Unneeded new list fixed
Please let me know what the last code (Generating a list of random values at the end of your reply) is for
Why create a new list only to use its length, when the length is already known?
Generate a list of n plus one different random values in range a,b:
Test code should be easily readable and follow language conventions. It may be mantained and/or used as a base for translations by other codewars users.
Don't use global variables to return values.
create_initial_scores
(why "initial"?) should return generated values without altering global variables.Don't rename standard library functions without a good reason. All python users know what
randint
does, but no one knowrnd
without looking deinition (random
?randint
?randrange
? user defined function?)Avoid useless code (
/
is float division, no need to usefloat(a) / float(b)
)In random tests
myscore
is always included inscores
.No fixed tests. Submission tests should have both fixed tests (a superset of sample tests) and random tests.
https://docs.codewars.com/authoring/guidelines/submission-tests
I think you need to add more test cases where Top% is exactly 0.1, 0.3, 0.5, 0.7, 0.9 to avoid solutions like this.
Never mind, I figured it out. This kata is really making me question my abilities
Fixed
Loading more items...