Siemens Interview Question

Describe how you would find the elements that are in array A but not in array B.

Interview Answer

Anonymous

Jan 23, 2025

Convert both arrays to sets. Use the set difference operation The set(A) - set(B) finds all elements in that are not in .