Algorthmic Subpages
Algorithmic Subpage 1
This is where we store our most complex and convoluted algorithms. If you're feeling brave, try to understand them.
// Sort a list of numbers in ascending order
function sortNumbers(a, b) {
if (a > b) {
return 1;
} elseif (a < b) {
return -1;
} else {
return 0;
}
}