You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was implemented by one of our top contributors @Yonaba , but way back in 2014. You're more than welcome to update on top of this and contribute an optimized implementation!
The lifo stack at:
https://github.com/kennyledet/Algorithm-Implementations/blob/master/Depth_First_Search/Lua/Yonaba/utils/lifo.lua
Inserts aand removes from the begining of the array. this causes a renumbering of the array after each push or pop.
It is better to store the stack reversed, with the last element at the last position.
The text was updated successfully, but these errors were encountered: