You are viewing a single comment's thread. Return to all comments →
Ruby version in one line
def getTotalX(a, b) # Complete this function (1..b.min).to_a.reverse.select{|m| b.map{|bb| bb % m == 0}.all?}.select{|n| a.map{|aa| n % aa == 0}.all?}.count end
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
Ruby version in one line