You are viewing a single comment's thread. Return to all comments →
def jimOrders(orders): serve_time = []
for i, v in enumerate(orders): serve_time.append([v[0]+v[1],i+1]) serve_time.sort() order = [x[1] for x in serve_time] return order
my solution in python 3, pretty simple
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 →
def jimOrders(orders): serve_time = []
my solution in python 3, pretty simple