Posts by Lucas Lima • 16 points
1 post
-
-1
votes1
answer280
viewsA: Count number of comparisons and exchange in a python sorting algorithm
For the number of comparisons you can use the c2, but don’t use the c1 for the number of exchanges because there are times he will count twice, for that use a variable outside the condition,…