Handling Problems in Python
Solutions to problems faced by new Python-users
Friday 18 October 2013
Shortest Code to Detect Rotated Strings in Python
a,b=raw_input().split()
print ['No','Yes'][a==(2*a).replace(b,"")]
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)