2215. Find the Difference of Two Arrays
Given two 0-indexed integer arrays
nums1
andnums2
, return a listanswer
of size2
where:
answer[0]
is a list of all distinct integers innums1
which are not present innums2
.answer[1]
is a list of all distinct integers innums2
which are not present innums1
.Note that the integers in the lists may be returned in any order.
1 | class Solution { |