Skip to content

Shouldn't push_pop_min and replace_min be the same function? #9

Closed
@robinmoussu

Description

I was looking at the implementation of push_pop_min and replace_min and was expected to see more or less the same thing.

However, when the min-max-head is empty, push_pop_min will not push the element. It look like it's a bug.

Also, I don't understand why two functions are needed. I would have thought that one would be an alias to the other. The documentation doesn't explain why two of them are needed.

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