Skip to main content
Commonmark migration
Source Link

#JavaScript (ES6),  26  24 bytes

JavaScript (ES6),  26  24 bytes

Saved 2 bytes thanks to @Grimmy

a=>!a.some(n=>2*a>(a=n))

Try it online!

#JavaScript (ES6),  26  24 bytes

Saved 2 bytes thanks to @Grimmy

a=>!a.some(n=>2*a>(a=n))

Try it online!

JavaScript (ES6),  26  24 bytes

Saved 2 bytes thanks to @Grimmy

a=>!a.some(n=>2*a>(a=n))

Try it online!

saved 2 bytes
Source Link
Arnauld
  • 197.7k
  • 20
  • 179
  • 650

#JavaScript (ES6), 26 26  24 bytes

Saved 2 bytes thanks to @Grimmy

a=>!a.some(p=n=>2*p>n=>2*a>(p=na=n))

Try it online!Try it online!

#JavaScript (ES6), 26 bytes

a=>!a.some(p=n=>2*p>(p=n))

Try it online!

#JavaScript (ES6),  26  24 bytes

Saved 2 bytes thanks to @Grimmy

a=>!a.some(n=>2*a>(a=n))

Try it online!

Source Link
Arnauld
  • 197.7k
  • 20
  • 179
  • 650

#JavaScript (ES6), 26 bytes

a=>!a.some(p=n=>2*p>(p=n))

Try it online!