Bubble Sort Different Pass and Time Complexity, Bubble Sort Total steps/comparison=?? Total number of comparisons: 2 (N-1)+(N-2)+(N-3)+..........+3+2+1 = (N(N-1) )/2 ≅ O(N )