You are viewing a single comment's thread. Return to all comments →
def jimOrders(orders): indexed_orders = [[i+1]+val for i,val in enumerate(orders)] indexed_orders.sort(key=lambda x : (x[1]+x[2],x[0])) return [x[0] for x in indexed_orders]
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 →
Python3