String Concatenation

Revision en1, by shah_entrance, 2019-07-01 13:42:44

Given a string. Check if the string is a concatenation of any prefix of this string (any number of times concatenation is possible). If present then print the prefix, otherwise -1.

Tags string, concatenation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English shah_entrance 2019-07-01 13:42:44 200 Initial revision (published)