Ad
  • Custom User Avatar
    if (codewarrior[c1] > opponent[o1]) {
                        win++;
                        c1++;
                        o1++;
                    }
    

    this line is redundant in your solution
    you just need the second if

  • Custom User Avatar

    Super slow solution, this is a good function but not fit for this exercise.
    Thanks for sharing.

  • Custom User Avatar

    Absolutely, harderst 5th kyu Algorithm i ever did by quite a margin actually.
    I did not use regex, it was insanely hard, almost like i was writting an A.I lol.

  • Custom User Avatar

    Thanks for your solution, i did the same way but with a hashmap at first, which cost me a lot more operations.

  • Custom User Avatar

    Hello, i have returned to this Kata and subsequently i must apologise for my impulsive critique.
    I simply didn't realize how it could be done because i am a bit new to Java algorithms.
    I did not really find this Kata too difficult, about as difficult as other 6th Kyu, but i will surely take my time to see other solutions and also JoJoSmith10 shared article which proved very interesting at face value.

  • Custom User Avatar

    Don't waste your time with this kata, it seems interesting, and with more intuition to the problem it could have been a pretty fun 6th kyu Kata.
    But you can find plenty more friendly Kata that cover the same subjects.

  • Custom User Avatar

    No indication is given on how to distinguish tail from loop.

  • Custom User Avatar

    I did misread it, lower than 0 it says, weird, i did not include that and i passed the tests.

  • Custom User Avatar

    Hello, i am sorry, my mistake, the conditon was >12 not == 0 || >=12, did i misread that i had to include == 0?
    It was Java and it works.

  • Default User Avatar

    Hi DannyS95, it's immediately helpful to directly mention the language with which you're trying to solve the kata. Are you sure the kata is broken? Can you give some evidence as to how so? Thanks

  • Custom User Avatar

    What's the error message you're facing?

  • Custom User Avatar

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

  • Custom User Avatar

    Interesting way of reversing, i don't agree that it wastes cpu, i understand that you are creating an extra set of bytes with the result string but in this case i don't think it is very expensive.

  • Default User Avatar

    Which language?

    edit: just tested all languages and they work fine, it must be problem with your code. You can post your code here and mark it as spoiler, then we'll be able to help you.

  • Custom User Avatar

    This kata is broken, after i unlocked solutions those still don't pass.

  • Loading more items...