diff --git a/build.py b/build.py index e69de29..66560f5 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,9 @@ +def is_rotation(s1,s2): + if s1==None :return False + if s1=='' and len(s2)!=0:return False + if s1=='' and s2=='':return True + if len(s1)!=len(s2):return False + + return(len(s1) == len(s2) and s1 in s2*2) + +print is_rotation('hello','lohel') diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..e77f768 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..04a4445 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..1e256d6 Binary files /dev/null and b/tests/test_is_rotation.pyc differ