← ALL NOTES
Array

2215. Find the Difference of Two Arrays

Given two arrays nums1 and nums2, return [d1, d2] where d1 is the distinct values in nums1 absent from nums2, and d2 the distinct values in nums2 absent from nums1. Set difference in both directions.

Loading…