Ad
  • Custom User Avatar
    AB-GEN-II
    
                 __ __            
                /  V  \           
               /       \          
              /         \         
             /           \        
            /             \       
           /               \      
    ______/                 \_____
                 88 88            
    
    
    Your AB-GEN-II solution
    
                 __ __            
                /  v  \           
               /       \          
              /         \         
             /           \        
            /             \       
           /               \      
    ______/                 \_____
                 88 88            
    

    I don't see any difference here... I even used the same number of spaces?

  • Custom User Avatar

    Please add to the description a warning to NOT modify the input parameter. Doing so changes the test cases, making solving the kata much harder!

  • Custom User Avatar
  • Custom User Avatar
  • 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.

  • Loading more items...