(a, b)
return True
Checks to see that two arrays
        are completely equal, regardless of order
        Complexity: O(n^2)
Checks to see that two arrays
        are completely equal, regardless of order
        Complexity: O(n^2)
Checks to see that two arrays are completely equal regardless of order Complexity : O ( n^2 )
def array_equals(a, b):
    """ Checks to see that two arrays
        are completely equal, regardless of order
        Complexity: O(n^2)
    """
    i = 0
    # Check all values in A
    while i < len(a):                # This loop runs N times
        flag = False
        j = 0
        # Search for that value in B
        while j < len(b):            # This loop runs N times
            if a[i] == b[j]:
                flag = True
                break
            j+=1
        if not flag:
            return False
        i+=1
    return True
def array_equals ( a , b ) : i = 0 # Check all values in A while i < len ( a ) : # This loop runs N times flag = False j = 0 # Search for that value in B while j < len ( b ) : # This loop runs N times if a [ i ] == b [ j ] : flag = True break j += 1 if not flag : return False i += 1 return True