Python wstawka do posortowanej listy
import bisect
a = [1, 2, 4, 5]
bisect.insort(a, 3)
print(a)
Clumsy Capuchin
import bisect
a = [1, 2, 4, 5]
bisect.insort(a, 3)
print(a)