You are viewing a single comment's thread. Return to all comments →
if this solution passes the tests why mine failing? it says timeout.
contacts= [] n = int(input().strip()) for i in range(n): op, contact = (input().strip().split(' ')) if op =="add": contacts.append(contact) else: count = 0 for x in contacts: if contact in x:count+=1 print(count)
Tries: Contacts
You are viewing a single comment's thread. Return to all comments →
if this solution passes the tests why mine failing? it says timeout.