Linked list-based stack implementation providing dynamic memory allocation without fixed capacity limits.
- Course: CST211 - Data Structures
- Assignment: Assignment 6 - Stack Linked List
- Institution: Oregon Institute of Technology
- LIFO stack using linked nodes
- No fixed capacity constraints
- Dynamic memory allocation per element
- Built on LinkedList foundation
- Efficient memory usage for variable-size stacks
- Base Structure: Built on top of LinkedList class
- Memory: Dynamic allocation, grows/shrinks as needed
- Efficiency: O(1) for all operations, no resizing overhead
Push(T)- Add element to top (front of list)Pop()- Remove and return top elementPeek()- View top elementisEmpty()- Check if stack is emptySize()- Get element count
- Pros: No capacity limits, no wasted space
- Cons: Slight overhead per node, less cache-friendly
- Alternative stack implementations
- Trade-offs between array and linked list backing
- Adapter pattern with different base structures
- Memory allocation strategies
- C++
- Visual Studio
- Linked data structures