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.
Thank you, fixed.
Hey, thanks for the suggestion. I don't log on a lot anymore nowadays but took the opportunity to fix it up immediately.
Hey guys,
My kata's been stuck in beta for almost half a year now, even though almost 80 people have tried it. Apparantely it is too difficult for many (and still rated 6 kyu on average?). I think this one is a good edge case to test the efficacy of the beta process. I'd also like it if someone would take a look at the kata and approve it.
https://www.codewars.com/kata/5aba8a75206a29494000021b
This has been quite demotivating for me to create other katas since my other one took many months to be approved as well. I hope you can help out.
Thanks in advance :)
Nice one! Didn't take me too long and yet learned a lot about JS internals. :)
Thanks for the remark, I'll keep it in mind :P
I added the imports to the example tests and the static keyword in the solution setup.
The java version has equivalent output to the JavaScript one and that one is correct. Are you sure your answer is okay?
Glad to hear it worked out :) Devil's in the details!
You guys sure you sorting lexicographically descending? I ran over it a few times but can't find a problem and my solutions for Java/Javascript are equivalent. I'd appreciate it if one of you could post your temporary solution as a spoiler so I can cross-reference :)
Forgot to change the example tests :) Used to be lower-case at first. The actual tests should not have the problem. Just fixed the example tests. Could be that you don't see the changes yet due to progress saving.
I see your random testing has worked out. Good kata :)
Good luck with making more!
The way I'd do it, but not the best way:
Check if the values fall within the defined range. Also a check (but not thorough) is to average 1000 or some other arbitrary sized calls. For instance, if you expect code to return a random string of two letters so
[a-z][a-z]
you could do the following:If this passes 10 times, you have a very high probability it is a uniform distribution. Or the cheater would have tricked it into falling with a small deviation from the average without an uniform distribution but that'd be harder than actually doing the challenge I think.
Does anyone have any hints? I've been completely rekt by this kata. Made a spreadsheet with a hell of a lot of numbers but can't for the life of me find a pattern.
Thanks for the shorter solution. I'm 100% new to Python :)