...

/

Challenge: Check if Arrays are Disjoint

Challenge: Check if Arrays are Disjoint

Try to 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:

  • 11 \leq arr1.length, arr2.length 103\leq 10^3
  • 105-10^5 \leq arr[i] 105\leq 10^5

Examples

Access this course and 1400+ top-rated courses and projects.