Skip to main content
added 56 characters in body
Source Link

Java, 2525 24 bytes

Boring-1 byte thanks to Olivier Grégoire!
Boring regex answer

s->s.matches("(.+)\\1+$"\\1+")

Try it online!Try it online!

It's just 1 byte longer than the python answer aaaaaIt's just 1 byte longer than the python answer aaaaa I'm tied now :)

Java, 25 bytes

Boring regex answer

s->s.matches("(.+)\\1+$")

Try it online!

It's just 1 byte longer than the python answer aaaaa

Java, 25 24 bytes

-1 byte thanks to Olivier Grégoire!
Boring regex answer

s->s.matches("(.+)\\1+")

Try it online!

It's just 1 byte longer than the python answer aaaaa I'm tied now :)

Source Link

Java, 25 bytes

Boring regex answer

s->s.matches("(.+)\\1+$")

Try it online!

It's just 1 byte longer than the python answer aaaaa