Ad
  • Default User Avatar

    yeah I agree. It took me so much time to solve the problem and optimize the solution until 'WTF' when I saw the top voted solution hahaha.. Anyway worth it coz I learn so much and I feel I'm still okay with my solution as it really functions so well even the rules change to what it really meant.

  • Custom User Avatar

    It best fits under the 7 kyu description, which is:

    Iterating arrays and returning a subset of values
    Basic data type manipulations
    Common operations such as sorting (using built-in sorting methods)
    

    8 kyu kata are usually much simpler, dealing with stuff like simple function definitions, basic variable assigments, basic math operations, and basic syntax fixes

  • Custom User Avatar

    Why is this a 7 kyu kata? It's a really basic one....

  • Default User Avatar

    javascript doesn't support classes! So the requirement is a little misleading...

  • Default User Avatar

    This is a tremendous example of KISS...

  • Default User Avatar

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

  • Default User Avatar

    guys, you gotta be kiddin' !

    seriously :)

  • Default User Avatar

    you're right, there are issues, and I'd rather delete this kata as it doesn't seem to be a very inspired one.
    Thank you for your time

  • Default User Avatar

    If you didn't understand it's much much better to wait to clarify first. This was my first ever kata. Sorry for inconveniences, I even don't know how to re edit. Yes, the townSize it's just the dimension, as content doesn't matter, at first. I have given a commented example in which that is obvious, tough. The other arrays are with +/-1 values showing in which direction can the matrix be traversed. Traversed actually means filled with incrementing numbers. But honestly, have you read ALL the description before voting down on this? :(
    Please don't be violent, as I said, that was my first kata...

  • Default User Avatar

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

  • Default User Avatar

    nice and academic, but I solve the kata without prototypes

  • Default User Avatar

    I don't think everyone has to know those games...

  • Default User Avatar

    this is the best solution no matter what (cause I also did it exactly the same way :D). It's obviously that it's the best regarding performance. The math is simple enough. It has been said that one has to know math in order to be a [good] developer, but not viceversa. This is a good example of that!

  • Default User Avatar

    this doesn't handle more than 2 parameters