Ad
  • Default User Avatar

    You're right the instructions are unclear due to extra verbosity (and a not-normal use of 'same', math specific maybe?), but what you have provided isn't the same as what the kata asks.

    "Create a function that takes two arrays of integers, comp(a, b) [compSame(a, b) in Clojure], and checks if the values in array b are the squares of the values in array 'a' such that there is one value in 'b' for each value in 'a' and no unpaired values. Please be careful since this function can also accept null values for parameters, and negative numbers also have sqares."

    This is what it should be, though some of the syntax stuff at the end of the original prompt still applies. The original, while highly specific, really doesn't do the best job of explaining the challenge.