Ad
Code
Diff
  • def verify_sum(w1, w2)
      w1.sum == w2.sum rescue false
    end
    • def verifySum(w1, w2)
    • !!(w1 && w2 && w1.downcase.chars.sum(&:ord) == w2.downcase.chars.sum(&:ord))
    • def verify_sum(w1, w2)
    • w1.sum == w2.sum rescue false
    • end