SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"


def check_lists(a, b):
    if a == b:
        return EQUAL
    elif is_sublist(a, b):
        return SUBLIST
    elif is_sublist(b, a):
        return SUPERLIST
    else:
        return UNEQUAL


def is_sublist(a, b):
    return a in [b[i:i + len(a)] for i in range(len(b) - len(a) + 1)]

SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"

VERY_UNLIKELY_STRING = "ꗲꅯḪꍙ"


def check_lists(a, b):
    if a == b:
        return EQUAL
    _a = VERY_UNLIKELY_STRING.join(map(str, a))
    _b = VERY_UNLIKELY_STRING.join(map(str, b))
    if _a in _b:
        return SUBLIST
    elif _b in _a:
        return SUPERLIST
    else:
        return UNEQUAL

Switch back to the substring method - it's faster
Switch back to the substring method - it's faster

  SUPERLIST = "superlist"
  SUBLIST = "sublist"
  EQUAL = "equal"
  UNEQUAL = "unequal"
  
+ VERY_UNLIKELY_STRING = "ꗲꅯḪꍙ"
+ 
  
  def check_lists(a, b):
      if a == b:
          return EQUAL
-     elif is_sublist(a, b):
+     _a = VERY_UNLIKELY_STRING.join(map(str, a))
+     _b = VERY_UNLIKELY_STRING.join(map(str, b))
+     if _a in _b:
          return SUBLIST
-     elif is_sublist(b, a):
+     elif _b in _a:
          return SUPERLIST
      else:
          return UNEQUAL
  
- 
- def is_sublist(a, b):
-     return a in [b[i:i + len(a)] for i in range(len(b) - len(a) + 1)]
- 
Switch back to the substring method - it's faster
## Code Before:
SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"


def check_lists(a, b):
    if a == b:
        return EQUAL
    elif is_sublist(a, b):
        return SUBLIST
    elif is_sublist(b, a):
        return SUPERLIST
    else:
        return UNEQUAL


def is_sublist(a, b):
    return a in [b[i:i + len(a)] for i in range(len(b) - len(a) + 1)]

## Instruction:
Switch back to the substring method - it's faster
## Code After:
SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"

VERY_UNLIKELY_STRING = "ꗲꅯḪꍙ"


def check_lists(a, b):
    if a == b:
        return EQUAL
    _a = VERY_UNLIKELY_STRING.join(map(str, a))
    _b = VERY_UNLIKELY_STRING.join(map(str, b))
    if _a in _b:
        return SUBLIST
    elif _b in _a:
        return SUPERLIST
    else:
        return UNEQUAL
