diff --git a/build.py b/build.py index e69de29..13291f6 100644 --- a/build.py +++ b/build.py @@ -0,0 +1,7 @@ +def is_rotation(s1, s2): + if s1 is None or s2 is None or len(s1) < len(s2): + return False + double_s1 = 2*s1 + if double_s1.find(s2) != -1: + return True + return False diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..cf81e15 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..4cc068f 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..ea13e22 Binary files /dev/null and b/tests/test_is_rotation.pyc differ