Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
c[1] solution in Creative category for Letter Queue by JohnKershaw
def letter_queue(commands):
q = ''
for c in commands:
q = q[c[1]=='O' : ] + c[-1] * (c[1]=='U')
return q
Jan. 31, 2015