Information, calcul, communication

CS-119(k)

ICC-P Code pour exercice 3

This page is part of the content downloaded from ICC-P Code pour exercice 3 on Sunday, 29 June 2025, 20:43. Note that some content and any files larger than 50 MB are not downloaded.

Page content

Code:
from random import randint ints: list[int] = ... def find_min_index(l: list[int], start_index: int) -> int: ... # print(find_min_index([3, 1, 4, 1, 18])) # 1 # print(find_min_index([3, 1, 4, 1, 18], 0)) # 1, équivalent # print(find_min_index([3, 1, 4, 1, 18], start_index=2)) # 3 # print(find_min_index([3, 1, 4, 1, 18], start_index=4)) # 4 def sort(l: list[int]) -> None: ... print(ints) sort(ints) print(ints)