oleiade / lane

Generic PriorityQueues, Queues, Stacks, and Deque data structures for Go
https://pkg.go.dev/github.com/oleiade/lane#pkg-types
MIT License
878 stars 76 forks source link

FR: Get() method for Queue and Deque #24

Open muety opened 4 years ago

muety commented 4 years ago

What do you think about a Get(index int)-like method to get an arbitrary element from a queue in O(n) by iterating the linked list?