Find different elements in two lists

Asked at Bank of America · Coding Questions · Difficulty: Easy

Given two lists of integers, `list1` and `list2`, which may not be of equal length, write a function to return all the different elements from both lists (the values present in exactly one of the two lists).

Loading the problem…