 Kokoma code pona ko détecter ba doublons na array.
Tala code ya Python oyo ekoki ko détecter ba doublons na array: ```python def print_duplicates(arr): duplicates_found = [] hashTable = {} mpo na num na arr: soki num na hashTable: ba doublons_found.append(num) else: hashTable[ num] = num print('Ba doublons na kati ya array ezali:', ba doublons_found) inputArray = [3, 2, 1, 2, 3, 4] print_duplicates(inputArray) ``` Sortie: ``` Ba doublons na kati ya array ezali: [2, 3] ``` Code oyo esalela tableau ya hash pona ko garder suivi ya ba éléments na array. Tango doublon ezwami, elingi koloba, élément moko ezali déjà na tableau ya hash, ebakisami na liste `duplicates_found`. Na nsuka, liste oyo enyatami mpo na kolakisa ba doublons na kati ya array.