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
This comment is hidden because it contains spoiler information about the solution
I am having an issue with the solutions test in swift. I am getting 1 more than the expected value.. Meaning that it's probably an issue with the range I am using but I don't think so since all the example tests and random tests have passed successfully with the expected amounts of possible answers. Is anyone having the same issue?
I posted how I found my range bellow if someone could please shed some light as to what I am doing wrong exactly.
Thank you!
Well inferring that equation from the description is part of the kate imo.
That was my initial approach but I didn't know it was allowed to write another function.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Wow can't believe I didn't see what I forgot to add but cheers man!
Alright thanks for the hint!
This comment is hidden because it contains spoiler information about the solution
Tests using swift not working? Code works fine on playgrounds
This comment is hidden because it contains spoiler information about the solution
Oh right thanks! I forgot to skip the whitespaces
Can you please explain how you are able to use two elements in the closure? I thought you could only use one in the first function. Thanks!
Is there any issue with the last two tests? Because my code works on playgrounds but not here (using swift)
it tells me "("[" gap ", " Gap ", " gAp ", " gaP ", " gap "]") is not equal to ("[" Gap ", " gAp ", " gaP "]") -"
This is the result that I get on playgrounds : [" gap ", " Gap ", " gAp ", " gaP ", " gap "] which is the expected result. It seems like it's testing for "gap" and "twowords" without the actual spaces.