def compare_arrays(arr_1, arr_2):
    """Compare using length of list, and distribution of list elements"""
    if not len(arr_1) == len(arr_2):
        return False
    # make histograms of both lists
    hist_1 = {}
    for num in arr_1:
        if num not in hist_1:
            hist_1[num] = 0
        else:
            hist_1[num] += 1
    hist_2 = {}
    for num in arr_2:
        if num not in hist_2:
            hist_2[num] = 0
        else:
            hist_2[num] += 1

    for key in hist_1.keys():
        if (key not in hist_2.keys()) or (not hist_1[key] == hist_2[key]):
            return False
    return True