This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rotation: | |
@staticmethod | |
def is_substring(s1, s2): | |
"""Checks if s2 is a substring of s1 | |
Args: | |
s1 (string) string input | |
s2 (string) rotation of s1 |
OlderNewer