diff --git a/build.py b/build.py index e69de29..12dfa93 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,11 @@ +def is_rotation(s1,s2): + if(s1==None or s2==None): + return False + if(s1==''): + if(s2==''): + return True + return False + for i in range(len(s1)): + if(s1[i:]+s1[0:i]==s2): + return True + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..828bf5e Binary files /dev/null and b/build.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..b046d07 Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_is_rotation.pyc b/tests/test_is_rotation.pyc new file mode 100644 index 0000000..1fa696f Binary files /dev/null and b/tests/test_is_rotation.pyc differ