We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defjimOrders(orders):# Write your code herecustomer_time={i+1:sum(orders[i])foriinrange(len(orders))}sorted_orders=sorted(customer_time,key=lambdax:customer_time[x])returnsorted_orders
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jim and the Orders
You are viewing a single comment's thread. Return to all comments →
Python Solution using key-value pairs -