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.
(JS) Random tests should be wrapped inside a describe block, like this:
Looking at your solution, I'm pretty sure it's because your solution goes through the string to create a deep object then your solution loops through the deep object. This means that your solution technically loop through some of the string contents twice. You need to make it so that it only pass them once.
In the description,
Features of random tests
section:Typo there (double
the
).There should be a fixed test that have two adjacent
black bmw
sightings. My solution doesn't handle that case and was able to pass through luck.Approved by someone.
Well, now the message is flipped:
It should be user result first instead of the expected.
My suggestion is to run the reference solution first and put the result to a variable, then match user solution with the variable like this:
https://www.codewars.com/kata/reviews/64abed357cbb0400010acc5b/groups/667669efae093df165d30e93
Fixed by fork above.
Fork approved.
Javascript translation
Javascript translation
Well, if it's end-inclusive then for input
11
shouldn't it result in3
instead of2
since11 + 2
is also prime?Anyway, the description is still unclear imo.
It was not mentioned that the range is end-exclusive.
.
Loading more items...