Solution: Check if Arrays are Disjoint
Let’s solve the Check if Arrays are Disjoint problem.
We'll cover the following
Statement
Given two arrays, determine whether or not they are disjoint.
Note: Arrays are disjoint if they have no common element between them.
Constraints:
-
arr1.length
,arr2.length
-
arr[i]
Solution
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.