Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Not an issue. By your logic

    1. Every kata's description is insufficient because there always exist some people who do not have domain specific techniques (protip: coding is one) to solve the problem
    2. Every kata must include spoilers and outline steps to solve them

    which honestly doesn't hold any water. If you don't like certain katas, just don't do them okay?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    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 clear
    • Question anything else that is related to you having a problem solving a kata -> that's you, currently.

    When you post issues:

    • provide ALL the useful information:
      • language
      • input
      • outputs (actual expected) when relevant
      • error message when relevant
    • check, DOUBLE check that this IS an issue, meaning that the problem is in the kata itself and not in your code. If it's in your code, post rather a question
    • if you pass this step, you still have to prove/explain what the issue is (and if you can provide fixes, it's even better)

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Yeah, My solution from this rank 6 kata also worked for this problem: https://www.codewars.com/kata/checking-groups/csharp

  • Custom User Avatar

    Feature Request: filter out math-based kata. Because sometimes you just aren't in the mood.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

    public interface IUnitState {
        bool CanMove();
        int Damage();
    } 
    

    Let me know if that makes sense.

  • Custom User Avatar

    I don't think this is a clear signal. I did some edits to description though, hope it is more strict now.

  • Custom User Avatar

    You should remove this text from the description:

    "For your convenience, in this kata we will use unbleach() function when evaluating your results. This function replaces whitespace characters with [space], [tab], and [LF]. You can see how it's done in Example Test Cases."
    

    This is a clear signal that those sequences will be allowed in the tests.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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...