Data structures implementations in JavaScript.
A simple setup for insertionSort. It shows the time of excecutions needed for sorting an array, as well.
----script.js----
Consists of few functions:
-
Random array - generates random array after user sets its size
-
InsertionSort - sorts provided array in ASC or DESC order
-
Reset, enableButtons, disableButtons are few helper functions for proper HTML setup in different cases
----index.html----
A simple HTML structure.
----style.css----
A simple style css.
----normalize.css----
It makes browsers render all elements more consistently and in line with modern standards.