Skip to main content
added 41 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 3, 3737 29 bytes

Outputs by failing/not failing-8 bytes thanks to xnor.

Fails for doubling sequences, completes otherwise.

f=lambda a,*b:b>()>(2*a>b[0]>q,f2*a<=b[0]>f(*b))

Try it online!Try it online!

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online! Test suite by Noodle9.

Python 3, 37 bytes

Outputs by failing/not failing.

f=lambda a,*b:b>()>(2*a>b[0]>q,f(*b))

Try it online!

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online! Test suite by Noodle9.

Python 3, 37 29 bytes

-8 bytes thanks to xnor.

Fails for doubling sequences, completes otherwise.

f=lambda a,*b:2*a<=b[0]>f(*b)

Try it online!

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online! Test suite by Noodle9.

added 552 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 3, 37 bytes

Outputs by failing/not failing.

f=lambda a,*b:b>()>(2*a>b[0]>q,f(*b))

Try it online!

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online! Test suite by Noodle9.

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online!

Python 3, 37 bytes

Outputs by failing/not failing.

f=lambda a,*b:b>()>(2*a>b[0]>q,f(*b))

Try it online!

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online! Test suite by Noodle9.

Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 3, 40 bytes

f=lambda a,*b:b==()or 2*a<=b[0]and f(*b)

Try it online!