Ad
  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/201.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Custom User Avatar

    The harder and hardest test cases are returning an "Unspecified Assertion Error" in javascript. Upon close inspection, it seems like some of the array elements are not comma separated (no commas between elements) where there are supposed to be commas. Testing the cases in the browser console returns "Uncaught SyntaxError: missing ] after element list. note: [ opened at line 1, column 18

    Going through the array and adding the missing comma fixes the error. The harder tests are being executed in a combined time of 7ms, while the hardest are being executed in a combined time of 458ms.

  • Custom User Avatar

    Ruby 3.0 should be enabled, see this to learn how to do it

    Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)

    describe "<This message should describe the categories of test groups inside this block>" do
      it "<A short message describing this test group>" do
        expect(...).to eq(...) #Assertions
        #Or Test.assert_equals(user_response, reference_response)
      end
    end
    
  • Custom User Avatar

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

  • Custom User Avatar

    My code is just 1 line long and it still says execution timeout. Can somebody help?