Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Letter Queue by TovarischZhukov
def letter_queue(commands):
queue = []
for elem in commands:
if "PUSH" in elem:
queue.append(elem.split(" ")[1])
elif queue:
del queue[0]
return "".join(queue)
Dec. 5, 2015