Skip to main content
Commonmark migration
Source Link

#JavaScript, 26 23 bytes

JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 30 bytes

Recursive Solution, 30 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

f=([x,y,...s])=>x?x==y&f(s):!y 

Try it online!

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 30 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

f=([x,y,...s])=>x?x==y&f(s):!y 

Try it online!

JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

Recursive Solution, 30 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

f=([x,y,...s])=>x?x==y&f(s):!y 

Try it online!

added 2 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 2830 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

f=([x,y,...s])=>x?x==y&f(s):!y 

Try it online!Try it online!

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 28 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

([x,y,...s])=>x?x==y&f(s):!y 

Try it online!

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 30 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

f=([x,y,...s])=>x?x==y&f(s):!y 

Try it online!

added 29 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 28 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

([x,y,...s])=>x&&x==y&&!f=>x?x==y&f(s):!y 

Try it online!Try it online!

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 28 bytes

([x,y,...s])=>x&&x==y&&!f(s) 

Try it online!

#JavaScript, 26 23 bytes

s=>/^((.)\2)+$/.test(s) 

Try it online!

##Recursive Solution, 28 bytes

Thanks to Arnauld for a fix at the cost of 0 bytes.

([x,y,...s])=>x?x==y&f(s):!y 

Try it online!

added 10 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
added 236 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading