Published
Edited
Jul 21, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function random_int_array(min, max, qty) {
var rand_arr = []
for(var i = 0; i < qty; i++) {
rand_arr.push(Math.floor(Math.random()*(max-min)) + min)
}
return rand_arr
}
Insert cell
Insert cell
Insert cell
Insert cell
(function() {
const DES = 0
const ASC = 1
const DIRECTION = ASC
// I warn you on using large array lens since the it. table above can grow big
const N = A.length
return insertion_sort(A, N, DIRECTION)
})()
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more