Insert a new data item into a Stack implemented by array.
O(1)
Delete the last inserted item from a Stack implemented by array
O(1)
Insert a data item into an Ordered Array
O(n)
Delete an arbitrary data item from an Ordered Array
O(n)
Delete the least recently inserted data item from a Queue implemented by array
O(1)
Insert a new data item into a Priority Queue implemented by array
O(n)
Delete any one data item from an unordered array
O(n)
Search for a value in ordered array using binary search.
O(logn)
push a new data item into Stack
0(1)
Pop the top one from the Stack
O(1)
Enqueue a new data item into the Queue
O(1)
Dequeue the front data item from the queue
O(1)
O