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
Yeah, this should be 8 kyu right?
What does this code mean? Is this an IFEE?
What does this code mean? is this a sample of IIFE?
@Voile, That link you gave was a hardcore version of this Kata, since this kata doesn't have test case for very long integers.
This comment is hidden because it contains spoiler information about the solution
I experienced this too. You must have encountered something like this [boat, shoes, boat, shoe], where the expected is boatshoes yet your code returned shoesboat. I think it must return the first consecutive longest string, in this case boatshoes.
For random testing what if array combinations are equals in length?
[boat, shoes, boat, shoe]
should it return boatshoes? or shoesboat? I passed 166 test and failed 43.
You should add more test case such as long random strings.
Yeah, this should be atleast 6 kyu.
This comment is hidden because it contains spoiler information about the solution
What sorcery is this! This is amazing.
You could also use (+b/5)|0 insted of ~~(+b/5) for Math.floor.
The error must be due to unwanted spaces.
This is amazing, you can even simplify it for a one line of code.
Loading more items...