2014-08-08から1日間の記事一覧

SHORTEST REPETITION(CodeEval)

CHALLENGE DESCRIPTION: Write a program to determine the shortest repetition in a string. A string is said to have period p if it can be formed by concatenating one or more repetitions of another string of length p. For example, the string …