Learning java, javascript, HTML, CSS, shell, python with fun javascript games and videos
function bubbleSort(a) { var N = a.length; for (var i = 0; i < N; i++) { var min = i; for (j = i+1; j < N; j++) { if (a[j] < a[min]) min = j; } exch(a, i, min); } }