Ad
  • Default User Avatar

    The lists lengths are 3000 - 5000. Brute force is not practical. Think of other ways you can track entries in an array. Python offers many options, including builtin modules that can help solve this in one line!