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.
I would find it impossible to solve the math algorithm based kata without googling the algorithm. This can't be cheating can it?
I can write the method as find(numbers,range) but of course I don't know how to make it object oriented so that the numbers are not fed into the method with its arguments but somehow magically arrive while the method itself only has the single range number in its arguments. Can anyone share with me how the numbers array arrives at the find(range) method? Is there some trick in the constructor method I don't know? I feel as though I've solved the programming problem but can't get it tested because I don't know how to turn the thing into a class. Javascript.
This comment is hidden because it contains spoiler information about the solution
What did it for me was looking up an algorithm to do this. It exists. It's not something that just comes naturally to the mind of a non-mathlete. Oh and uh you don't need to sort anything. It looks like you are on the right track though.
I had to go to google for the answer to this one because I haven't studied math that much. <-(Hint)
I don't think this one is really 6 kyu. It is harder for someone without math training.