Check if Two Arrays Equal Problem
Check if Two Arrays Equal Problem — ExecCode School DSA Practice
Solve the Check if Two Arrays Equal problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given two lists of numbers. Your task is to check if both lists have the exact same numbers, even if they are in a different order. If they do, print "Equal". If not, print "Not Equal".
Examples
Input 5 1 2 3 4 5 5 4 3 2 1; Output Equal. Input 3 1 2 3 1 2 4; Output Not Equal
Constraints
1<=N<=10^5
Practice Check if Two Arrays Equal free on ExecCode. Browse DSA problems, topic map, and placement guides.