Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
It best fits under the 7 kyu description, which is:
8 kyu kata are usually much simpler, dealing with stuff like simple function definitions, basic variable assigments, basic math operations, and basic syntax fixes
Why is this a 7 kyu kata? It's a really basic one....
javascript doesn't support classes! So the requirement is a little misleading...
This is a tremendous example of KISS...
This comment is hidden because it contains spoiler information about the solution
guys, you gotta be kiddin' !
seriously :)
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
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...
This comment is hidden because it contains spoiler information about the solution
nice and academic, but I solve the kata without prototypes
I don't think everyone has to know those games...
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!
this doesn't handle more than 2 parameters