Below is an illustration of an algorithm that employs a brute force method. In this approach, we iterate through the array and, for each element, compare it to all subsequent elements for equality: def find_duplicates_brute_force ( arr ) : duplicates = [ ] for i in range ( len ( arr ) ) : for j in range ( i + 1 , len ( arr ) ) : if arr [ i ] == arr [ j ] and arr [ i ] not in duplicates : duplicates . append ( arr [ i ] ) return duplicates This algorithm is most effective for small arrays or when this function isn't a performance bottleneck in an application. However, for larger arrays, its inefficiency becomes apparent, as it has a time complexity of O(n^2).