Question d’entretien chez Amazon

Find the missing numbers between smallest and largest element in the array.

Réponses aux questions d'entretien

Utilisateur anonyme

30 mars 2019

reverse the value stored in int type.

Utilisateur anonyme

1 mai 2020

list_a = [1, 23, 12, 98, 30, 2, 50] for i in range(int(len(list_a))): for j in range(i): if list_a[j] > list_a[j+1]: x = list_a[j] list_a[j] = list_a[j+1] list_a[j+1] = x print (list_a[0],list_a[int(len(list_a)-1)]) for i in range(list_a[0],list_a[int(len(list_a)-1)]): print (i)