Jump to content

Rep-string: Difference between revisions

m
(Add CLU)
Line 1,261:
{{trans|Go}}
<lang dyalect>func rep(s) {
var x = s.lenLength() / 2
while x > 0 {
if s.startsWithStartsWith(s.substringSubstring(x)) {
return x
}
Line 1,287:
for s in m {
if (rep(s) is n) && n > 0 {
print("\(s) \(n) rep-string \(s.substringSubstring(n))")
} else {
print("\(s) not a rep-string")
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.