Skip to content

Inefficient BST_nodes_in_range.py #9

@Bogdy2

Description

@Bogdy2

If using greater than or equal too and less than or equal to in line 14, then you can remove the check to see if it is ever equal to the max or the low range. So you can remove the lines 16 and 17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions