Skip to main content
added 3 characters in body
Source Link
lirtosiast
  • 21.5k
  • 5
  • 52
  • 127

R + pryr, 49 bytes

requires (pryr to be installed (givesis a package that gives shorthand for creating functions)

f=pryr::f;f(any(combn(x,4,f(sum(diff(x))))==3))

Using @ETHproductions idea of taking all combinations of length 4

R, 49 bytes

requires pryr to be installed (gives shorthand for creating functions

f=pryr::f;f(any(combn(x,4,f(sum(diff(x))))==3))

Using @ETHproductions idea of taking all combinations of length 4

R + pryr, 49 bytes

(pryr is a package that gives shorthand for creating functions)

f=pryr::f;f(any(combn(x,4,f(sum(diff(x))))==3))

Using @ETHproductions idea of taking all combinations of length 4

Source Link
mnel
  • 954
  • 7
  • 10

R, 49 bytes

requires pryr to be installed (gives shorthand for creating functions

f=pryr::f;f(any(combn(x,4,f(sum(diff(x))))==3))

Using @ETHproductions idea of taking all combinations of length 4