Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Letter Queue by Pavellver
def letter_queue(commands):
line = ''
for command in commands:
if 'PUSH' in command:
line += command[-1]
else:
line = line[1:]
return line
April 7, 2023
Comments: