Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Letter Queue by UFO665
def letter_queue(commands):
sText = ""
for c in commands:
sText = sText[1:] if c == "POP" else sText + c.split()[-1]
return sText
Feb. 28, 2016