clojure-hackos.between-2-sets

Solution to the Between Two Sets challenge See: https://www.hackerrank.com/challenges/between-two-sets

factor?

(factor? first second num)

Returns true if and only if:

  • all elements of the first array are factors of the integer being considered
  • the same integer is a factor of every element in the second array.

get-total-x

(get-total-x a b)

Returns the number of elements which are ‘between’ sets a and b, meaning factor? returns true given both sets and a number.