IvanFilipov/FMI-DSA

Deque implementation

IvanFilipov opened this issue · 2 comments

What is interesting here - to have O(1) access at random possition

Features to support:

  • O(1) random access
  • push_back/push_front O(1)*
  • pop also
  • random access iterator (maybe)
    generally to be as close as possible to std::deque

Notes:

  • should be in dsa:: namespace
  • should follow the code convention
  • put it into FMI-DSA/data_structures/deque
  • embed it to tests into FMI-DSA/data_structures/stack/template_stack and FMI-DSA/data_structures/queue/template_queue

Implemented by Minev in 706fd8d and c86dfcb, slightly modified by me in 8bd688f (also added to template test of adaptors). Everything seems to be fine, closing.