Skip to content

In various traversal methods of binary trees, under the 'ITERATIVE' mode, sometimes a stack is used and other times a queue, which may lead to potential inconsistencies in the order compared to the 'RECURSIVE' mode. #102

@zrwusa

Description

@zrwusa

Describe the bug
In various traversal methods of binary trees, under the 'ITERATIVE' mode, sometimes a stack is used and other times a queue, which may lead to potential inconsistencies in the order compared to the 'RECURSIVE' mode.

For example: the leaves method.

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