Loading...
Is this your company?
Common integers in two arrays.
Anonymous
def findCommon(x,y): return list(set(x) & set(y))
def commonint(a,b): a_set = set(a) b_set = set(b) if (a_set & b_set): print(a_set & b_set)
Interviewer said using a set was not a useful solution. Didn't care that it outperformed their code in performance tests.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.