Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The length of nums1 is small in comparison to that of nums2
If we iterate over elements of nums1 we just need to find the count of tot - element for all elements in nums1