Skip to main content
added 9 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 73 70 6969 67 bytes

lambda s:1in[lens in[''.join({s[i::n]forc*n ifor c in range(n)}s[::n])for n in range(2,len(s))]

Try it online!Try it online!

-4 bytes, thanks to Jitse

Python 2, 73 70 69 bytes

lambda s:1in[len({s[i::n]for i in range(n)})for n in range(2,len(s))]

Try it online!

-4 bytes, thanks to Jitse

Python 2, 73 70 69 67 bytes

lambda s:s in[''.join(c*n for c in s[::n])for n in range(2,len(s))]

Try it online!

-4 bytes, thanks to Jitse

added 9 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 73 7070 69 bytes

lambda s:1 in[len1in[len({s[i::n]for i in range(n)})for n in range(2,len(s))]

Try it online!Try it online!

-34 bytes, thanks to Jitse

Python 2, 73 70 bytes

lambda s:1 in[len({s[i::n]for i in range(n)})for n in range(2,len(s))]

Try it online!

-3 bytes, thanks to Jitse

Python 2, 73 70 69 bytes

lambda s:1in[len({s[i::n]for i in range(n)})for n in range(2,len(s))]

Try it online!

-4 bytes, thanks to Jitse

added 64 characters in body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 7373 70 bytes

lambda s:1 in[len(set({s[i::n]for i in range(n))})for n in range(2,len(s))]

Try it online!Try it online!

-3 bytes, thanks to Jitse

Python 2, 73 bytes

lambda s:1 in[len(set(s[i::n]for i in range(n)))for n in range(2,len(s))]

Try it online!

Python 2, 73 70 bytes

lambda s:1 in[len({s[i::n]for i in range(n)})for n in range(2,len(s))]

Try it online!

-3 bytes, thanks to Jitse

Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63
Loading