2). 查询性别为 男 ,并且年龄在 20-40 岁(含)以内的姓名为三个字的员工。
参考链接:https://blog.csdn.net/jiong9412/article/details/124776279
function bubbleSort(arr) { var numElement = arr.length; var temp; for (var outer = numElement; outer >= 2; --outer) { for (var inner = 0; in...
function insertionSort(arr) { var temp, inner; for (var outer = 1; outer <= arr.length - 1; ++outer) { temp = arr[outer]; inner = outer;...
function heapSort(array) { function swap(array, i, j) { var temp = array[i]; array[i] = array[j]; array[j] = temp; } functi...
function quickSort(arr) { if (arr.length <= 1) { return arr; } var pivotIndex = Math.floor(arr.length / 2); var pivot = arr.splice(pivot...