algodeck

Stack

Stack

LIFO (Last In First Out)

#stack

Stack implementations and insert/delete complexity

Insert: O(1)

Delete: O(1)

Insert: O(n), amortized time O(1)

Delete: O(1)

#complexity #stack