Skip to main content
added 226 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt, 6 bytes

@øX}f1

Try it here

@øX}f1     :Implicit input of array U
@          :Function taking an integer X as argument
 øX        :  Does U contain X
   }       :End function
    f1     :Get the first integer >=1 that returns false

Japt, 6 bytes

@øX}f1

Try it here

Japt, 6 bytes

@øX}f1

Try it

@øX}f1     :Implicit input of array U
@          :Function taking an integer X as argument
 øX        :  Does U contain X
   }       :End function
    f1     :Get the first integer >=1 that returns false
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt, 6 bytes

@øX}f1

Try it here