Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Letter Queue by bukebuer
def letter_queue(commands):
s = ''
for cmd in commands:
if 'PUSH' in cmd:
s += cmd.split(' ')[1]
else:
s = s[1:] if s else ''
return s
July 2, 2014
Comments: