Skip to content

Bug Report for clone-graph #5710

@Weezski

Description

@Weezski

Bug Report for https://neetcode.io/problems/clone-graph

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Node does not conform to hashable in Swift:
Below has to be done to make it work

extension Node: Hashable, Equatable {
    static func == (lhs: Node, rhs: Node) -> Bool {
        lhs === rhs
    }

    func hash(into hasher: inout Hasher) {
        hasher.combine(ObjectIdentifier(self))
    }
}

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