update minimum sum
min_sum = arr1 [ i1 ] + arr2 [ index2 [ i1 ] ] NEW_LINE print ( " ( " , arr1 [ min_index ] , " , " , arr2 [ index2 [ min_index ] ] , " ) " , end = " ▁ " ) NEW_LINE index2 [ min_index ] += 1 NEW_LINE k -= 1 NEW_LINE