Pregunta de entrevista de Siemens

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

Respuesta de la entrevista

Anónimo

23 ene 2025

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