diff --git a/build.py b/build.py index e69de29..06aed33 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,12 @@ +def is_rotation(s1,s2): + if(s1 == None or s2==None): + return False + if(len(s1) != len(s2)): + return False + elif ( len(set(s1).intersection(set(s2))) == len(set(s1)) ): + return True + else: + return False + + +print(is_rotation('hello','olleh')) diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..9ee438a 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..5d4bd8f 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..ce31501 Binary files /dev/null and b/tests/test_is_rotation.pyc differ