Skip to content

Better representation of SLL head and tail #10

@nitkach

Description

@nitkach

For single linked list it's more clear to rewrite this:
https://github.com/nitkach/data_structures/blob/main/src/bin/sll.rs#L5-L6
to something like this:

struct SLL {
    head_tail: Option<(Rc<RefCell<Node>>, Rc<RefCell<Node>>)>
}

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