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.
Great Kata. Yet I found this kata alot easier from other katas of yours in 7kyu. Is there a moderator to evaluate kata difficulty, or it is your decision?
This comment is hidden because it contains spoiler information about the solution
Right, though does the same!
This comment is hidden because it contains spoiler information about the solution
You can call out code or a command with backticks ` before and after your code, also mark your comment as a spoiler if it contains code.
I really couldn't figure out the appropriate label for this comment or what it aims for! What are you trying to theorize here?
I apparently misinterpretted the instructions, i was solving a different problem. Thanks anyway
So?
index[1] still the longest, so it must come first concatenated with the next string, right?
This Kata was interesting to solve! I solved it, but when i was trying to optimize my code by excluding the first and the last elements of the array since there is neither elements before the first nor after the last one(logically), i got errors like my code should return index 0 of {0,0,0,0}!
This may seem confusing to other warriors!
Hello, I'm conding in C and I have passed all fixed tests, though while submitting appears:
Error. Expected wlwsasphmxxowiaxujylentrklctozmymu but got owiaxujylentrklctozmymuwpgozvxxiu
.-If
testing(longest_consec(["wlwsasphmxx","owiaxujylentrklctozmymu","wpgozvxxiu"], 2),
-So
"owiaxujylentrklctozmymu"
should be the longest string-then concatenate the longest string consecutively with the next string (since k=2) in the array yields unexpected result as:
"owiaxujylentrklctozmymuwpgozvxxiu"
,Do I miss something?
would anybody be able to tell me the exact algorithm for this kata?,
All solutions are hard-coded.
I think it has the same algorithm for sorting array of names based on their ages.