Ad
Code
Diff
  • def verify_sum(a,b)
      return false if a.nil? || b.nil?
    
      a.sum == b.sum
    end
    • def verify_sum(a,b)a.sum==b.sum rescue !1end
    • def verify_sum(a,b)a&&b&&a.sum==b.sum||!1end
    • def verify_sum(a,b)
    • return false if a.nil? || b.nil?
    • a.sum == b.sum
    • end