Skip to main content
added 40 characters in body
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290

ES6, 31 bytes

(a,b,c)=>a+b==c||b+c==a||c+a==b=>a+b==c|b+c==a|c+a==b

Add 5 bytes if you need to name the function diff.

Edit: Saved 2 bytes thanks to @Alex L.

ES6, 31 bytes

(a,b,c)=>a+b==c||b+c==a||c+a==b

Add 5 bytes if you need to name the function diff.

ES6, 31 bytes

(a,b,c)=>a+b==c|b+c==a|c+a==b

Add 5 bytes if you need to name the function diff.

Edit: Saved 2 bytes thanks to @Alex L.

Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290

ES6, 31 bytes

(a,b,c)=>a+b==c||b+c==a||c+a==b

Add 5 bytes if you need to name the function diff.