Write a programme to do bubblesort to sort an array X={10,5,7,8,3,6,4,14}showing the list obtained at each step. Also count no. of comparison operationsin the programme.
Answers
Answered by
0
let assign all the programme in list.
then to sort use command like l.sort()
and for l.count()in bracket the number you want to compare
then to sort use command like l.sort()
and for l.count()in bracket the number you want to compare
Similar questions