Skip to main content
added 20 characters in body
Source Link
Magic Octopus Urn
  • 20.8k
  • 5
  • 62
  • 136

05AB1E, 32 bytes

{¥PÙQ

Try it online!Try it online!

-1 thanks to Kaldo


{   # Sort.
 ¥  # Consecutive differences.
  P # Product.

Works on negatives, though OP never specified...

05AB1E, 3 bytes

{¥P

Try it online!


{   # Sort.
 ¥  # Consecutive differences.
  P # Product.

Works on negatives, though OP never specified...

05AB1E, 2 bytes

ÙQ

Try it online!

-1 thanks to Kaldo


{   # Sort.
 ¥  # Consecutive differences.
  P # Product.

Works on negatives, though OP never specified...

Source Link
Magic Octopus Urn
  • 20.8k
  • 5
  • 62
  • 136

05AB1E, 3 bytes

{¥P

Try it online!


{   # Sort.
 ¥  # Consecutive differences.
  P # Product.

Works on negatives, though OP never specified...