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.
Yeah, I had a look at python solutions and if I ignore the solutions that trivialize the kata with builtins, incorrect solutions are common.
It's a beginner kata, it should catch beginner mistakes, and this task makes it easy to create a slightly wrong solution that naive random tests don't catch.
I suggest adding these 75 exhaustive size-4 fixed tests to all languages (gotta love how each language has its own code):
(maybe they need to be renamed again so the answer isn't always either 2 or 3)
size-5 lists might have some limited value too, there are 541 of those though.
This test was really well done. Gave me a good mental workout and really made me have to think about how to get the logic to work.
lol, i really struggled to understand the instructions (my bad, im dumb) which made this a lot harder than it should have. learned some new things too! I like.
Less padding in the description please. It's nice to know, but maybe after the question.
Approved by Johan
calling the parameter "sperm" 🤣🤣
Use the numbers stated in the kata's description. Where did you get that
0.354
factor? Not a kata issue.Doesn't work for random values in Python.
For example, for mpg 8540, my solution gives 3023.16. It fails saying the right answer should be 3023.21.
Why this is failing?
Haskell translation
end
at the end of your program which makes it ill-formedreturn
thefunction
that you wrote and which solves the kata at the end of your program. currently, you are returning an empty tablesolution
that you created, hence why the tests cannot run properlyPoorly written- the way it is worded and calling the parameter "sperm" suggests the argument is going to be "X" or "Y". It should be rewritten to make it clear that we are evaluating the chromosome pairs
--it
should be++it
; thereverse_iterator
is already going backwardsThis comment is hidden because it contains spoiler information about the solution
check for XY and XX only
This comment is hidden because it contains spoiler information about the solution
Loading more items...