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.
This comment is hidden because it contains spoiler information about the solution
The example code should be put in a code block.
I tried to do random tests, but the server kept timing out, so I had to get rid of them.
Looks good! Thanks for the help.
The fork and original translation are different, yes.
I made the changes in the original translation. So, no?
I would have made random tests for
getPrimes
, but when I did tht the server would time out.Here is what happens when I press the publish button:
I was going to edit the old translation, but whe I tried to save it I got an error message that said I needed to merge new changes into the translation. I couldn't figure out how to merge the new changes in.
I was going to edit the old translation, but when I tried to save it I get an error saying I had to merge be cause other changes have been made since the translation. How do I merge the new changes into the translation?
I am looking into seeding right now.
This comment is hidden because it contains spoiler information about the solution
I looked at my random test logic again and it looks like I made an algorythm that always returns the same number, it's not random! I am going to fix this.
I am getting this result for 43 from the
isPrime
function: Expected: false, instead got: trueI returned true because 43 is a prime number. What am I missing?
Alright, got the random tests implimentd. I managed to find a Swift kata that used them.
I can't acces the API's that I would use to write random tests.
Loading more items...