function GetLeastNumbers_Solution(input, k)
{
let arr = input.sort((a,b) => a -b);
return arr.splice(0, k)
}
module.exports = {
GetLeastNumbers_Solution : GetLeastNumbers_Solution
};
function GetLeastNumbers_Solution(input, k)
{
let arr = input.sort((a,b) => a -b);
return arr.splice(0, k)
}
module.exports = {
GetLeastNumbers_Solution : GetLeastNumbers_Solution
};