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.
do not use the
issue
tag to ask for help. your code does not work for a single, non-iterable argument, you return thearguments
object in that case.This comment is hidden because it contains spoiler information about the solution
OP solved it, closing
At index 20 there is a plateau-peak.
Half a day on this? How did you even get to level 3kyu?? ๐
the last '\n' at the end
See the example in the description again, there is no
\n
at the end. I've added a value to the tests to avoid error messages being truncated.Because your code is throwing a string instead of an error. Google a little or search MDN docs.
You're not failing a random test, you're failing a fixed one, in particular:
strng
= "12341234",arr
=[ 'DIeF', 'IeFD', '12341234', '41234123', '34123412', '23412341' ]
Every rotation exists in arr, but your code returns
false
. There are some logical flaws in the way you're counting stuff. You should focus more on rotations ofstrng
itself, not justarr
,please format it in a proper way so that other people will look at the code...
broken ass kata. dont worry ab it
You need to figure out the pattern to decode the messages. For example, '8 5 12 12 15' should be decoded as 'Hello'. The pattern used is 'A': 1, 'B': 2, 'C': 3, ..., 'Z': 26."
This means that your code is too long. Note that this kata is a code golf kata, which means that it has a limit of code length:
deeply equal means it should not change the original array or in tech terms not a shallow copy
Loading more items...