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
This comment is hidden because it contains spoiler information about the solution
approved
This comment is hidden because it contains spoiler information about the solution
Lmao. No way this is 7 kyu
No problem, The sample tests in C# seem fine, and there is a fixed test for n = 10 in the final tests:
That also looks good.
Yes, It passes the test if n = 10. What I want to say is test sample does not seem do be correct. Sorry if I talk big. I just starded to learn coding.
And that's what you're asked to do:
This code returns "Great, now move on to tricks" if n = 10
So this is not the best practice. We should instead ask if n >= 10.
I used Convert class in C#, however this class is not included in this kata. I tested the code on .NET. It works fine. But how can I convert string to char without using Convert class?
Oh, thank you! Did not notice that. Just fixed it.
Your code returnrs true for a = 100, b = 1 and c = 1.
This comment is hidden because it contains spoiler information about the solution
Did you read all the way to the end of the kata description? See this part:
Input validation
If an empty value ( null, None, Nothing etc. ) is given instead of an array, or the given array is an empty list or a list with only 1 element, return 0.
my code passed 6 tests but failed 3. It can not pass when the given array is null or has only one value.
Loading more items...