FunctionRacerProblemsRace

Sort by Price

EasypandasPython

items has columns name and price. Return a list of the names ordered by price from highest to lowest. Items with the same price keep the order in which they appear.

Example 1

items {"name":["a","b","c"],"price":[5,9,5]}
returns ["b","a","c"]

b is the most expensive; a stays before c.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems