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.
Added rust-specific info to the description.
Thanks for pointing that out. Although, I believe it would be cleaner to have all important information at the top.
It is specified in the sections Output and Note that you should return the lowest index in case there are multiple valid solutions.
I did not find any indication in the description of this kata that if multiple indexes exist for a given array, the first index should be returned. I have a failing test for the input
[0, 0, 0, 0, 0]
and the test suggests that the correct answer is index 0. Any index of this array should be a correct answer in my opinion, as again, there was no indication that if multiple indexes fulfil the requirements the first (or leftmost) is the correct answer. Correct me if I am wrong, but I believe the test in this case are biased towards the solution. All my other tests pass.so good, i nailed it.
Your difficulties with solving the kata are not really a kata issue.
Anybody solved the problem in last one in the basic cases in attempts?(in Python)
Since when basic string slicing is 6 kyu?
Approved
Lua translation!
case doesn't matter here
If you want help with solving the kata, mark your comment as a
question
instead, and specify what you need help with. Theissue
label is reserved for issues with the kata itself.This comment is hidden because it contains spoiler information about the solution
This is not how you post an
issue
. You've said nothing about any potential problem with the kata, instead just posted a incomplete portion of your code. I'm not sure kind of action do you actually expect to result from this...This comment is hidden because it contains spoiler information about the solution
Loading more items...