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,"")]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment