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.
This comment is hidden because it contains spoiler information about the solution
I totally agree; this might even be harder than some kyu 7'en I came across.
never heard them with this name but i guess so
arr
andlength
are the input,first
is an output which should be filled in with the number you found. Do you know how so-called output parameters work in C?how tf does it take the input, like... how doi use arr[] and *first???
This absolutely isn't kyu 8, I can't even decipher what you're asking me to do
Definitely not kyu 8, should be kyu 7 at least.
This kata looks harder to me as it required me to pick a different strategy depending on the number of candidates (few vs many).
Your latest solution (not the one you've posted) fails for cases like
[]
and[1]
OP solved it, closing
Please use the
issue
tag when you can show that there's a significant issue with the kata such as a bug in the test cases or a need for a major language version upgrade. I don't know what you mean by "the promo for the other kata is longer" - it's one line out of over a dozen. Regardless over 50,000 people have completed this kata, and on review I don't think the description has serious issues with length or legibility.If you'd like then perhaps a
suggestion
tag with specific changes you want would be more appropriate.not particularly hard or easy, but terribly described, the promo for the other kata is longer and more legible than the actual description, am I the only one?
Approved.
If someone passing by would approve my fork that'd be great.
your code passes when commenting out those two lines. you probably changed something else at the same time.
... actually it rarely fails. maybe we can see that fixed.
... kinda wish the test code wasn't golfed :s
Loading more items...