Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bigger Price by suic
interface Stock {
name: string,
price: number,
};
function biggerPrice(limit: number, data: Stock[]): Stock[] {
data.sort((x, y) => y.price - x.price);
return data.slice(0, limit);
}
Aug. 9, 2020
Comments: