Skip to main content
Bounty Ended with 100 reputation awarded by zoomlogo
deleted 43 characters in body
Source Link
lyxal
  • 34.3k
  • 2
  • 64
  • 141

flax, 67 bytes

⊃ḟκ→∴€∵µḟκ→A∴

Attempt This Online!Attempt This Online!

enter image description here

Explained

⊃ḟκ→∴€∵µḟκ→A∴
⊃       ⊳ head of
      last four things as amin monad:of
  κ→∴ κ→A∴   range(1, abs(max(input)) + 12)
  ḟ      ⊳   set differencediff with input

flax, 6 bytes

⊃ḟκ→∴€

Attempt This Online!

enter image description here

Explained

⊃ḟκ→∴€
⊃       ⊳ head of
      last four things as a monad:
  κ→∴   range(max(input) + 1)
 ḟ      ⊳   set difference with input

flax, 7 bytes

∵µḟκ→A∴

Attempt This Online!

enter image description here

Explained

∵µḟκ→A∴
min of
   κ→A∴  ⊳ range(1, abs(max(input)) + 2)
  ḟ      ⊳ set diff with input
Source Link
lyxal
  • 34.3k
  • 2
  • 64
  • 141

flax, 6 bytes

⊃ḟκ→∴€

Attempt This Online!

enter image description here

Explained

⊃ḟκ→∴€
⊃       ⊳ head of
     €  ⊳ last four things as a monad:
  κ→∴   ⊳   range(max(input) + 1)
 ḟ      ⊳   set difference with input