You are viewing a single comment's thread. Return to all comments →
My solution:
def jimOrders(orders): time_and_order = [] for i in range(len(orders)): time_and_order.append([ sum(orders[i]), i + 1, ]) time_and_order.sort() # print(time_and_order) return " ".join([ str(x[1]) for x in time_and_order ])
However, the entry point block had a space in ln42:
fptr.write(' '.join(map(str, result)))
Which I had to remove
fptr.write(''.join(map(str, result)))
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 →
My solution:
However, the entry point block had a space in ln42:
Which I had to remove