partitionSelect.js (582B)
1 "use strict"; 2 3 Object.defineProperty(exports, "__esModule", { 4 value: true 5 }); 6 exports.partitionSelectDocs = void 0; 7 var partitionSelectDocs = { 8 name: 'partitionSelect', 9 category: 'Matrix', 10 syntax: ['partitionSelect(x, k)', 'partitionSelect(x, k, compare)'], 11 description: 'Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.', 12 examples: ['partitionSelect([5, 10, 1], 2)', 'partitionSelect(["C", "B", "A", "D"], 1)'], 13 seealso: ['sort'] 14 }; 15 exports.partitionSelectDocs = partitionSelectDocs;