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.
Yup :)
Thank you guys, that helped, kata solved! Yay!
I tihnk that you got description wrong way. You shouldn't focus on single characters of strings - you should focus on strings that are already provided in the strattr. Your task is to find longest string that can be created from consecutive (k) list elements (if there can be two strings with equal length, take first one).
If k is 2 you have to return the first longest string made of 2 consecutive strings in the array, that would be
wkppvixoyx
. It doesn't matter what those strings contain.Please give more details of the test you don't understand, the value of k and the whole array.
This comment is hidden because it contains spoiler information about the solution
May you post your code as a reply to this comment, so that I can help you? Put your code between two sets of three backticks to format it properly in Markdown, see here: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code.
My code js is correct and i got error: TypeError: Cannot assign to read only property '0' of object '[object Array]'
Thanks for the tip!
You're not meant to modify the original array. It's bad practise to modify it because it will change it permanently and you can't reverse the process. Here is an example (written in Python):
The Kata author has designed it in such a way that the array will be the parameter for the function of the expected results. This means that the modified array that you are returning will be the parameter instead of the original array. To curcumvate this problem you need to create another array and push it this one instead.
Same here, for js random tests doesn't work. I'm 100% sure my solution is correct.
this is the ES6 way ;)
What is your answer?-) Note: it's a club, you can suppose there are more than one...
hello!what condition should be if the input string will have only one number?
Think carefully to previous post by bkaes!
Hint: Does the second sort respect the result of the first sort in any way? Why not? How could you fix this? Hint 2: The first sentence of my previous reply.
Loading more items...