Ad
  • Custom User Avatar

    I've added the algorithms tag as suggested, but just for your information, the ranks of kata is almost never changed unless they are very wrong (eg. a 6kyu kata being ranked at 4kyu) and have very few solves.

    Also one reason this one is 7kyu instead of 6kyu is that the tests are purposely kept small so that pretty much any algorithm will work, it doesnt need to be anything very fast.

  • Custom User Avatar

    Also there is the Valid Braces kata which is perfectly ranked at 6kyu and certainly more difficult than this kata.

  • Custom User Avatar

    A solution being "obvious" is not a matter of the difficulty of the challenge, but of the experience of a user. The requirement of having to think before arriving at a solution is similarly dependent on the skills and experience of the solver. In other words: you are projecting. As for this kata, since the solution pretty much only involves the arcane art of "counting", the given difficulty is appropriate.

  • Custom User Avatar

    I believe that array is itterated through 3 times. this will be slow when data size grows.

  • Custom User Avatar

    Done, it was implied tho.

  • Custom User Avatar

    is it because of the multiple methods? like filters?
    i wanna know more about time complexities.