8
Dan Garthwaite
Last seen 8 years ago
Member for 10 years, 7 months, 20 days
Difficulty Normal
Almot identicle to my solution. I used:
if c == "0":
continue
Not sure which is "better".
More
This is where my brain first went. Fix the inputs, then grind out the result.
More
I also thought you have to slice the "0b" prefix off. But "0" and "b" are never "1".
More
This is a surprising solution. You used slices instead of queue operations for the result, and used .pop() on the incoming command set.
More
Could exploit list truthiness instead of checking its length:
elif command == "POP" and array:
More