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.
That's definitly too long for such a simple exercise.
Would be better to split the string by ' ' and then iterate through this and take the min.
In the C# Version the class name doesn't match with the test cases. The class name is CountCapitals and the test cases look for Captials.
[C# Code] I don't know how to use this fct in Oper:
In the test cases it just says "testing(Opstrings.Oper(Opstrings.HorMirror, "lVHt\nJVhv\nCSbg\nyeCt"), "yeCt\nCSbg\nJVhv\nlVHt");"
What parameter do I have to use for ... fct?
EDIT: I now just completed it. For you who have the same problem: just google "(language) function as parameter"
Any further information? Have you tried it again afterwards, maybe just a server issue?
Else try optimizing your code.
The test looks if the exception is raised, not the text returned. You can just divide by 0 there and it will pass the test.
I would also like to know how this all works... I know it uses Combination as base but why 10+x nCr 10 + 9+x nCr 0 - 10**x -1?
Why are you defining: "bool par = (partRes == i);" and then checking "if (par)"?
This is completly unnecessary, because it only uses more memory. Would be easier if you just wrote "if (partRes == i)".
But you have to admit, that it looks way cooler using Linq than through usual iteration...
That is pretty damn clever man! I should really learn to use Linq...any advice on any source to learn?
Ok, so I added the random test now. Also solved the issue with the example test, Thank you for your feedback!
Am I allowed to take your solution and use it for the random test? cause it is so much more short?
Thank you for your feedback. This is my first kata as you said.
I added the static.
I have a question regarding your solution. Do you think I should (am I allowed?) take your solution as Example Solution for this kata, becaus it is much shorter? Or would it be better to leave my detailed solution, because, on my level, I still don't understand what you are doing there xD
"There are some problems in the example tests. "new[]" or "new char[]" is missing for the four Array initializers." What do you mean by this?
This comment is hidden because it contains spoiler information about the solution