Hacker News new | ask | show | jobs
by teiferer 48 days ago
Unfortunately, pop means two different things then. For the python lists, it pops "from the right" but for TwoStackAgg it pops "from the left". That makes the code harder to grasp.

Maybe use popleft?