Ad
  • Default User Avatar

    I would find it impossible to solve the math algorithm based kata without googling the algorithm. This can't be cheating can it?

  • Default User Avatar

    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.

  • Default User Avatar

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

  • Default User Avatar

    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.

  • Default User Avatar

    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.