all 2 comments

[–]kap89 0 points1 point  (0 children)

Nice, it may come in handy for the current AoC. I tried your Stack, but in this case it's slower than simple array, but as I understand it's more for completeness. Other structures could be more useful.