Skip to content

Inneficient lifo stack in Lua #536

@xopxe

Description

@xopxe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions