Skip to content

Cannot retrieve a value which has an empty String key. #1

@oroszgy

Description

@oroszgy

t.insert("", "sg");
System.out.println(t.contains("")); // prints false

The problem is that, the when you try to find the key "", the root node will match, which is a non real node. (In this tree, you cannot store multiple values for a single key.)

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