Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 363 Bytes

README.md

File metadata and controls

4 lines (3 loc) · 363 Bytes

Priority-Stack

An implementation of priority stack based on a red-black tree concept

The data is stored in a red-black tree with nodes containing priority value and a LIFO-stack instance for storing values of the same priority. Memory is allocated and freed dynamically. Both Pop and Push operations require time O(log(n)). Clear operation requires O(n) time.