Given two integer arrays where the second array is a shuffled duplicate of the first array with one element missing, find the missing element.
Please note, there may be duplicates in the arrays, so checking if a numerical value exists in one and not the other is not a valid solution.
The first array will always have at least one element.
The solution in Python
Option 1 (using
Option 2 (using
Option 3 (removing from list):