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.
fixed
Finally made adjustments to cover edge cases mentioned by Mednoob. Kata can be approved now :)
n + 2 is outside the range. if n was 12, then yes, the 11-13 pair should be counted.
How does this match with "If n is wrapped by twin primes (n-1 == prime && n+1 == prime) then that should also count even though n+1 is outside the range." ? That sounds end-inclusive ( and even slightly overinclusive, but specified unambiguously nevertheless ).
I've commented quite extensively and somewhat rudely (sorry, Voile) on some optimisations you can apply to make your solution pass consistently. But I understand that it does come down to micro-optimisations anyway.
At least it provided some sense of accomplishment at the end; that's better than the experience of some other users for this kata.
ad (2) That would not make the trailing newline visible though.
Fixed now.
Did I forget the sample tests?
approved
fork with Node 18, chai, sample tests with unsorted words, and removal of the "anti cheat" (issue below)
I don't think that bigger number will add anything to this kata. The recursion limit is pretty small for all type-level computations.
Thank you! Your kata inspired me to create this one. My main goal was to experiment with random tests for kata which test type-level properties. I also wanted to prevent incorrect solutions and solution with syntax errors (for example, the following solution to your kata). I don't know why some errors (including syntax errors) in user solutions are silently ignored.
Read this: https://docs.codewars.com/languages/python/authoring#testing-framework
hello, thank you for reporting the issue
but i really dont understand point number 3
thanks
Loading more items...