mirror of
https://github.com/coolaj86/fizzbuzz.git
synced 2024-11-16 17:29:04 +00:00
Stack (vanilla C)
Implement stack.c
with the following methods (as defined in include/stack.h
)
- create
- push
- pop
- peek
- length
- destroy
The underlying implementation may be
- dynamically-sized array
- linked-list
- any other ordered data structure
The storage strategy may
- make copies of the original elements
- store pointers to the original elements
The implementation must pass the following test suite queue-test.c
tar xf stack.tar.gz ~/
cd ~/stack
mkdir build
cd build
cmake ../
./stack-test