Challenge 2: Check if the given arrays are disjoint
Try to solve the Check if Arrays are Disjoint problem.
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
,