If getting TLE in O(len(A)*len(B))


#1

If your complexity is O(len(A)*len(B)) and still getting TLE then try: if the count of non * characters in B is greater than len(A) return 0 without processing


#2

thank you! :slight_smile:


#3

Thank you :slight_smile: