Ad
  • Custom User Avatar

    it is mentioned in the description. it is done to make kata more complex - to find out unorthodox approaches.

  • Custom User Avatar

    Print the input, read this:

    The returned object should include the first instance of each property seen on any parameter object, and any other instance of that property should be ignored.

    And see the last example in the decription:

    extend( {a: false, b: null}, {a: true, b: 2, c: 3} ) // should === {a: false, b: null, c: 3}

    You're also hardcoding the number of arguments, that's not a good thing to do.

  • Custom User Avatar

    for example take tese 2 words "some" and "home" ------> "ome" is common among both, it is clearly present in the question, You missed it!

  • Custom User Avatar

    I don't know why JS is available here at all...

    See the reply to the comment below. This kata was made before BF was available on Codewars, hence JS.

  • Custom User Avatar

    You're supposed to write a BF program, not JS one. I don't know why JS is available here at all...

  • Custom User Avatar

    It's in the description:

    people table schema

    people is the table's name in this kata.

  • Custom User Avatar

    No problem, it's in Details, Stats: Created and Published.

  • Custom User Avatar

    Have you seen how old is this kata? It wouldn't be approved today.

  • Custom User Avatar

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

  • Custom User Avatar

    @andreapt82 The condition is only that every boy has a girl next to him (on either side), and vice versa. So while BB is not valid, GBBG is valid. Have a look at the expected solution for your problem, are there any Bs that are NOT next to a G? Or any Gs that are NOT next to a B?

  • Custom User Avatar

    I give up.

  • Custom User Avatar

    She even gave you a possible solution for those inputs.

    No, it should not be null.

  • Custom User Avatar

    please check your solution again. I made some improvements in tests.

  • Custom User Avatar

    Testing expects all answers to have a length property. This is an artifact from when invalid cases would return a magic string instead of null.

    It's not your fault, there's already an Issue for it, and as long as the kata is still in Beta stuff like this can happen.

  • Custom User Avatar

    Read the description again carefully. It says to check that the first number is divisible by each of the two other numbers, not that the latter two numbers multiply to the first one.
    P.S. Funny how you posted this comment twice and one got +1 vote and the other got -1 :P

  • Loading more items...