Skip to main content
added 44 characters in body
Source Link
benzene
  • 267
  • 2
  • 8

Python 3, 7474 73 bytes

-1 byte thanks to Step Hen

def f(x,y,i=1):
 i=1
 while i*10<10**len(x or y)or str(i)in x+y:i*=2
 print(i)

Prints lowest integer with the same length as the first of the inputs that has nonzero length.

Python 3, 74 bytes

def f(x,y):
 i=1
 while i*10<10**len(x or y)or str(i)in x+y:i*=2
 print(i)

Prints lowest integer with the same length as the first of the inputs that has nonzero length.

Python 3, 74 73 bytes

-1 byte thanks to Step Hen

def f(x,y,i=1):
 while i*10<10**len(x or y)or str(i)in x+y:i*=2
 print(i)

Prints lowest integer with the same length as the first of the inputs that has nonzero length.

Source Link
benzene
  • 267
  • 2
  • 8

Python 3, 74 bytes

def f(x,y):
 i=1
 while i*10<10**len(x or y)or str(i)in x+y:i*=2
 print(i)

Prints lowest integer with the same length as the first of the inputs that has nonzero length.