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.
Since when basic string slicing is 6 kyu?
This comment is hidden because it contains spoiler information about the solution
It's possible to figure this out entirely on your own, without any real math background. I don't have one. I imagine googling would work too, although that takes the fun out of it.
I dissagree, there are much harder katas out there.
your solution is worst. :) O(n)(n) sine test is in for loop.
Damn, balu9 has no chill (⊙_⊙;)
I have no idea =)
can agree only becous of node version 8.1 used in this kata otherwize 6 kuy its more then enough.
completely agree
I think the case for an empty string is that "" rotated any n number of times is "", so if the first string is "" and the second string "", it must be true. I don't know if it is necessary for the example tests to show that edge case, although I do agree that the description could be a little clearer about the the bounds on the inputs (like string size, etc.).
...so you've just described normal addition?
this is clear enough imho with represented being the keyword, maybe the only addition (if any) i would make is:
your description is a bit too wordy and this line
(and continue till you find an integer which becomes less than 10 even after incrementing)
is kinda hard to read and understand where the stopping point of the task is.but i leave it to the mods and author to decide 🤷♀️
What do you think is missing there and how would you make it better?
i think the author worded the kata wrong...they should have specified that it is consecutive only in sorted order (i.e. after you sort the string as a list). "dabc" is not consecutive since the code point for d is not 1 less than the code point for a. however it is possible to MAKE a consecutive string with all 4 chars from "dabc", namely {'a','b','c','d'} would be one way to order them consecutively. I think a better way to ask this question would be: Is it possible to MAKE a consecutive string from the input string without duplicates in said consecutive string? or something like that...
This comment is hidden because it contains spoiler information about the solution
in which language, and why is that ?
Loading more items...