You are viewing a single comment's thread. Return to all comments →
I got it in 2 lines!
def jimOrders(orders): orders = sorted([[orders[i][0] + orders[i][1] + 1, i + 1] for i in range(len(orders))]) return [str(order[1]) for order in 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 →
I got it in 2 lines!