4 ms·In this code past uses push/pop and future uses shift/unshift. But they can both use push/pop.by im3w1l 2y agoIn this code past uses push/pop and future uses shift/unshift. But they can both use push/pop.julik 2y agoThat is deliberate, because I wanted the `past` + `future` to go in the same direction chronologically. They are separate stacks, but they represent a certain continuity in time - so I wanted to have it ordered the same (chronologically)im3w1l 2y agopush pop is faster though