Learn Computer Science
at Your Own Pace
Structured courses, solved exercises and video tutorials on algorithms, programming, databases and much more.
def tri_rapide(tableau):
if len(tableau) <= 1:
return tableau
pivot = tableau[len(tableau) // 2]
gauche = [x for x in tableau if x < pivot]
milieu = [x for x in tableau if x == pivot]
droite = [x for x in tableau if x > pivot]
return tri_rapide(gauche) + milieu + tri_rapide(droite)
Learning Domains
Explore our six major course categories
Courses for All Levels
Whether you are a university student, in CPGE or a professional, our content is classified by difficulty.