diff --git a/build.py b/build.py index e69de29..ce2af7e 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,4 @@ +def is_rotation(s1,s2): + if s1 is not None and s2 is not None: + return len(s1) == len(s2) and (s1+s1).index(s2) >-1 + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..7538fa0 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..e297068 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..ef394ef Binary files /dev/null and b/tests/test_is_rotation.pyc differ