Join Our RSS and Marketing Services. Subscribe To The Blog Engage Twitter List And Join the Facebook Group.
willspencer avatar
It requires n-1 passes to sort an array. In each pass every element a[i] is compared with a[i+1], for i=0 to (n-k-1), where k is the pass number and if they are out of order i.e. if a[i]>a[i+1], they are swapped. This will cause the largest element to move up or bubble up. Thus after [...]
  • 1
  • Bury
  • Vote

You must login to vote this story. Don't have an account yet? Join now, it's simple & free!

You must login to bury this story. Don't have an account yet? Join now, it's simple & free!

Login To Blog Engage Blog Traffic

No account yet? Join us now