Ad
  • Default User Avatar

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

  • Default User Avatar

    lol.

    What a kata....

    Make the createElement => use React.createElement

  • Default User Avatar

    Java.
    If the issue have aready been reported, maybe you can think about fix it ?
    It's a 8e kyu, not a 2e kyu. No need to put this kind of test, if the other are fine ...

  • Default User Avatar

    assertArrayEquals(new Object[]{"a", 4}, Solution.longestRepetition("bbbaaabaaaa"));

    If i change the value of "4", i can pass the test. But not the validation, like you did the same mistake, and i cant change it ...

    My debug value say "bbbaaabaaaa letter: a len: 7"

    and validation : "arrays first differed at element [1]; expected:<4> but was:<7>""

  • Default User Avatar

    expected:<-11.66666666666666[6] is freezing tempera...> but was:<-11.66666666666666[8] is freezing tempera...>
    LoL

  • Default User Avatar

    You have all info in your comment, and if you experiment on the regex101, you will see how group work too
    i just succeed the kata thanks to what you said.
    i guess you probably need to mark it as spoiler for futur people reading it.

  • Default User Avatar

    you can search the website regex101 if you want to know more about regex and try it. Dont forget to select ECMAjs on the left.

  • Default User Avatar

    Maybe if you have high grade in mathematics.
    I took a look at all of the solution given, and it's far from what you can do when you start coding.
    My code wasn't ugly, and the idea was here. I get more than half of the result.
    And it was accessbile from the level 7.
    The need for this kata, isnt accessible for someone who start coding.
    Maybe for 1Kyu guy, it's easy. It's not at all. And that was the aim of my message...

  • Default User Avatar

    i forfeit the kata, and obviously it was "easy".
    i dunno how the hell i miss that.

  • Default User Avatar

    Oh ok, i understand.
    So at level 7, you are suppose to do perfect code ...
    I guess the site need to change the kyu system, and how we grind it because i'm already 6 kyu without being capable to do this one...

  • Default User Avatar

    I dont understand what you mean. The person approved the kata without passing the test ? How is it possible ? it make no sense.

    i'm using a for( for) loop, so i guess it's O(n^2) time, but how am i suppose to have a O(n) ?
    Is there any hint ?
    I already break my loop when needed, and the first loop only go to the half of the num value...

  • Default User Avatar

    I spend more time on this kata than other superior kata...
    Honestly, you should split it in 2 kata.
    One without the performance, at level 7, and one with performance, at level 4 or 5.
    The only solution i can guess at my level, is to unlock the solution ...
    If you look at the forum on how is the difficult of kata :
    White (Beginner)
    simple language features
    Yellow (Novice)
    complex language features
    simple algorithms
    Blue (Competent)
    complex algorithms
    simple design patterns
    simple regex
    simple detailed requirements

  • Default User Avatar

    I have succed the test, but i cant get the performance test. I guess it's a bit hard for a 7kyu, but ok. My question is ... is it possible to add some link for possible hint ? maybe another kata who can help for improve the solution ?

  • Default User Avatar

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

  • Default User Avatar

    i pass the test, but it gave me an error, so i cant do the test:
    TypeError: Cannot read property 'charAt' of undefined
    at hello
    at /home/codewarrior/index.js:18:20
    at /home/codewarrior/index.js:20:5
    at Object.handleError

    but he say :
    Test Passed: Value == ''Hello, John!''
    Test Passed: Value == ''Hello, Alice!''