Commit a8bc1433 by Baptiste Rozière

Corrected the ground truth in MINIMUM_ROTATIONS_REQUIRED_GET_STRING tests

parent 967b53ff
......@@ -8,7 +8,7 @@ def f_gold ( str ) :
tmp = str + str
n = len ( str )
for i in range ( 1 , n + 1 ) :
substring = tmp [ i : n ]
substring = tmp [ i : i + n ]
if ( str == substring ) :
return i
return n
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment