Question:
Why for bubble sort is the number of iterations of the inner loop not exactly n^2
Author: Will ParkerAnswer:
Inner loop iterates (n-1)(n-1) times So the inner loop iterates n^2 -2n +1 times
0 / 5 Â (0 ratings)
1 answer(s) in total
Author
Will Parker