Red Hat interview question

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

Interview Answer

Anonymous

8 June 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.