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.
There are some katas out there that require very specific theoretical knowledge (that is very unlikely to discover on your own) with little to no room for creativity/variance in solution.
But this is not one of them.
I solved it just by tinkering in GHCi and making up different theories and without looking up external resources. My solution isn't most canonical and I don't have a hard proof that it 100% correct (test cases are rather strong though so it probably is). You do have to be comfortable with prime numbers though (Spoiler!) but that's not a sacred knowledge.
The problem is that this kata disguises the need for special knowledge, and you can only discover that fact by wasting time trying to solve it. After completing over 100 kata this is the only time I have experienced this.
I would also ask that you try to be more constructive in these forums. Disagreement is not a license for rudeness.
Not an issue. By your logic
which honestly doesn't hold any water. If you don't like certain katas, just don't do them okay?
This comment is hidden because it contains spoiler information about the solution
Hey thanks for the tips on posting an issue. I didn't realize I was opening a ticket, and thought I was just tagging my comment. However I do believe there is an issue but I can make may writing more clear. I'll post a new comment.
not even close to an issue. Closing.
FYI, generic message:
Seems you're "rather new" to cw, so here are some general guidelines about the comments:
Issue
: problem in the kata itself (description, wrong tests, wrong internal solution...)Suggestions
: well, I guess that part is clearQuestion
anything else that is related to you having a problem solving a kata -> that's you, currently.When you post issues:
When you post a question: well, most of the above apply too x)
When you post code, use proper github markdown, so that it's readable.
This comment is hidden because it contains spoiler information about the solution
Yeah, My solution from this rank 6 kata also worked for this problem: https://www.codewars.com/kata/checking-groups/csharp
Feature Request: filter out math-based kata. Because sometimes you just aren't in the mood.
This comment is hidden because it contains spoiler information about the solution
Very cool series. Does the IUnitState provided represent a preferred practice in C#? I am learning but I thought having setters was a little strange. Compare to this version.
Let me know if that makes sense.
I don't think this is a clear signal. I did some edits to description though, hope it is more strict now.
You should remove this text from the description:
This is a clear signal that those sequences will be allowed in the tests.
Let me quote the description: "only space, tabulation and linefeed are meaningful characters ... for the purposes of this simple kata, please do not add any other characters in the output".
Please show me where "the spec specifially mentions we can use [space] etc.", I'll correct this.
I am sorry if example cases somehow caused you to believe you can actually use placeholders instead of actual characters. Example test cases are not designed to do full tests on your code, but rather provide you with a starting point so that you can add your tests if needed. If you have any suggestions how to reduce ambiguity that confused you, e.g. edits for description or Example cases, I'll be glad to see those and implement them if feasible. Meanwhile, I am marking this issue as resolved.
The example tests allow [space], [tab], [LF], but the real tests require " ", "\t", "\n". This was for C# version. The tests should be consistent, especially because the spec specifically mentions we can use [space], etc.
Loading more items...