Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: Modify the output after each command solution in Clear category for Letter Queue by Stensen
def letter_queue(commands, answer=''):
for c in commands:
answer = answer + c[5:] if c.split()[0] == 'PUSH' else answer[1:]
return answer
Oct. 22, 2020