Red Hat Interview Question

How to find the difference between 2 lists without a loop or recursion?

Interview Answer

Anonymous

Jun 8, 2022

Making the list a set and do a diff between the sets. When the interviewer told me the answer I said that it's probably implemented as for loops somewhere else, she didn't care.