human
Check if two arrays are equal or not | Returns true if arr1 [ 0. . n - 1 ] and arr2 [ 0. . m - 1 ] contain same elements ..
If lengths of array are not equal means array are not equal.
Sort both arrays.
Linearly compare elements.
If all elements were same ..
Driver Code"
Solution in Python:

What is a code to check if two arrays are equal or not and the other steps required?
assistant
#Here is code to check if two arrays are equal or not and the other steps required.
 def areEqual ( arr1 , arr2 , n , m ) :
	if ( n != m ) :
		return False
	arr1 . sort ( )
	arr2 . sort ( )
	for i in range ( 0 , n - 1 ) :
		if ( arr1 [ i ] != arr2 [ i ] ) :
			return False
	return True
arr1 = [ 3 , 5 , 2 , 5 , 2 ]
arr2 = [ 2 , 3 , 5 , 5 , 2 ]
n = len ( arr1 )
m = len ( arr2 )
if ( areEqual ( arr1 , arr2 , n , m ) ) :
	print ( " Yes " )
else :
	print ( " No " )