Light Mode
Dark Mode
What output will this take?

It's unclear what you would like this function to return.

I tried returning the name of the top most expensive good, then the price, then the name and the price. Nothing satisfied the problem.

You ask for the output to be "the same as the second Input argument". So that's data? So you want me to empty the array except for the top most expensive goods?

The question is too vague for me to continue to work out the problem. Please advise what I need to return to solve this. Thanks.

Created: June 11, 2018, 4:31 a.m.
Updated: June 13, 2018, 4 a.m.
2
1
User avatar
nedredmond