kylekizirian / honey

My implementations of data structures and algorithms
0 stars 0 forks source link

Double-ended queue #36

Open kylekizirian opened 3 years ago

kylekizirian commented 3 years ago

I can think of two ways to do this:

  1. a doubly-linked list
  2. use an array with modulo indexing like described here

open data structures also describes a method using two stacks