Skip to content

container/heap: Ordering issue with a golang heap.Interface PriorityQueue. The heap.Fix() doesn't fix the ordering as it should #10782

@achedeuzot

Description

@achedeuzot

Hello,

I'm using the example provided on the container/heap documentation page to have a PriorityQueue but it doesn't work as expected.

I have posted a detailed case on stackoverflow (link below). Is there something I'm missing or is there really a problem with the way the priority queue works ?

http://stackoverflow.com/questions/30171451/ordering-issue-with-a-golang-heap-interface-priorityqueue-the-heap-fix-doesn

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions