Skip to content

Instantly share code, notes, and snippets.

View kraftpunk97's full-sized avatar

Kartikey Gupta kraftpunk97

  • Dallas. TX
View GitHub Profile
def func(list1, list2):
list1_ = [item for item in list1]
list2_ = [item for item in list2]
for ind in range(len(list1_)):
min_index = ind
for j in range(ind + 1, len(list1_)):
# select the minimum element in every iteration
if list2_[j] < list2_[min_index]: