Ad
  • Custom User Avatar

    It’s so frustrating when the sample tests pass, but Random tests don’t!

  • Custom User Avatar

    Python (all versions):

    Traceback (most recent call last):
      File "tests.py", line 12, in <module>
        before = BEFORE(["CAT"])
      File "tests.py", line 5, in BEFORE
        return pretty_print(a);
    NameError: name 'pretty_print' is not defined
    

    This happens in both sample and fixed tests

  • Custom User Avatar

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

  • Custom User Avatar

    This is a minor and admittedly picky suggestion that doesn't affect the Kata's functionality. The original description was likely written with an object-oriented language in mind, which explains the reference to a "method".

    The only change I'd suggest is updating the C language description to use the term "function" instead of "method", since C doesn't support methods in the OOP sense. Here's a fork with that small wording adjustment, in case you'd like to merge it:
    https://www.codewars.com/kumite/68912a45d61d89e470fe3b6c?sel=68912a45d61d89e470fe3b6c

    Again, this is purely a cosmetic change.

  • Custom User Avatar

    We need to know what happens after the home return!

    Is there any continuation to the story?
    What happened to that poor cat?!
    How exactly does one "fumigate" a house full of hundreds of mumbling, catatonic clones?
    Did the original programmer ever get their Codewars ranking back up after this disaster?

    So many questions without answers!

  • Custom User Avatar

    Hey friends, I need your help. I’m really confused and not sure I fully understand what’s going on. Can someone please explain this to me?
    Why:
    === ===snake=========
    'snake' should equal '??' ?

    ==a======a=a=a=lig===a=t====o=r=r=r=r==
    'alligator' should equal '??'

    =====k====r=a=vvvv==d=d=d=d=r==a=a=======
    '??' should equal 'aardvark'

  • Custom User Avatar

    Surely I am misunderstanding something because the task has been solved many many times in python.
    The python sample test contains this example (2025 June):

     @test.it("Ex2")
        def basic_test_cases():
            test.assert_equals(fire_and_fury("FIREYYFURYYFURYYFURRYFIRE"), "You are fired! I am really furious. You are fired!")        
      
    

    But in the notes of the description it says: If multiple of the same words are found in a row then plural rules apply.

    Wouldn't one rather expect: "You and you are fired! I am really furious."

    I would very much appreciate a hint.

  • Custom User Avatar

    C translation sample tests don't show actual and expected values

  • Custom User Avatar

    now on dart
    Translation Dart

  • Custom User Avatar

    JS tests generate warnings:

    assertSimilar is deprecated, use assert.deepEqual

  • Custom User Avatar
  • Custom User Avatar

    Python, possibly other languages: tests are susceptible to mutation of input and either crash or show incorrect visualisation if a user solution mutates input tree.

  • Custom User Avatar

    There are snakes at the end of the board in Go tests. I've created a fork that fixes this bug. Could someone approve it?

  • Custom User Avatar

    Fun problem, although a little easy for 5kyu.

    One suggestion: It would be nice if an example showing multiple lines was included in either the description or the sample tests.

  • Custom User Avatar

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

  • Loading more items...