def is_rotation(s1, s2): return s1 in s2 * 2 and len(s1) == len(s2)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment