- CMake
- C++ 23 Compiler
- Git
- Working command line
git clone --recurse-submodules https://github.com/lil-brumski/Brumski-DSA-Learning.gitor
git clone https://github.com/lil-brumski/Brumski-DSA-Learning.git
git submodule update --init --recursiveThen
cd Brumski-DSA-Learning
mkdir build
cd build
cmake ..
cmake --build . -j$(nproc)Run the executable: ./brumski_dsa
Example:
$ ./brumski_dsa --intll 1 2 3 4
START (linked list): Integers
Value: 1
Value: 2
Value: 3
Value: 4
STOP: Integers$ ./brumski_dsa --stringll "Nigeria" "Ghana" "Cameroon"
START (linked list): Strings
Value: Nigeria
Value: Ghana
Value: Cameroon
STOP: Strings$ ./brumski_dsa --floatll 2.1 3.2 4.3
START (linked list): Floats
Value: 2.1
Value: 3.2
Value: 4.3
STOP: Floats$ ./brumski_dsa --intst 1 2 3
START (stack): Integers
The top element is 3
The top element is 2
The top element is 1
STOP: Integers$ ./brumski_dsa --stringst "David" "Tare" "Brume"
START (stack): Strings
The top element is Brume
The top element is Tare
The top element is David
STOP: Strings$ ./brumski_dsa --floatst 2.2 3.3 4.4
START (stack): Floats
The top element is 4.4
The top element is 3.3
The top element is 2.2
STOP: Floats$ ./brumski_dsa --intqu 1 2 3
START (queue): Integers
The first in the queue right now is 1
The first has been popped!
The first in the queue right now is 2
The first has been popped!
The first in the queue right now is 3
The first has been popped!
STOP: Integers$ ./brumski_dsa --stringqu "David" "Tare" "Brume"
START (queue): Strings
The first in the queue right now is David
The first has been popped!
The first in the queue right now is Tare
The first has been popped!
The first in the queue right now is Brume
The first has been popped!
STOP: Strings$ ./brumski_dsa --floatqu 2.2 3.3 4.4
START (queue): Floats
The first in the queue right now is 2.2
The first has been popped!
The first in the queue right now is 3.3
The first has been popped!
The first in the queue right now is 4.4
The first has been popped!
STOP: Floats$ ./brumski_dsa.exe --intll 1 2 3 --intst 1 2 3 --intqu 1 2 3 --floatll 2.2 3.3 4.4 --floatst 2.2 3.3 4.4 --floatqu 2.2 3.3 4.4 --stringll "David" "Tare" "Brume" --stringst "David" "Tare" "Brume" --stringqu "David" "Tare" "Brume"
START (linked list): Floats
Value: 2.2
Value: 3.3
Value: 4.4
STOP: Floats
START (stack): Floats
The top element is 4.4
The top element is 3.3
The top element is 2.2
STOP: Floats
START (queue): Floats
The first in the queue right now is 2.2
The first has been popped!
The first in the queue right now is 3.3
The first has been popped!
The first in the queue right now is 4.4
The first has been popped!
STOP: Floats
START (linked list): Integers
Value: 1
Value: 2
Value: 3
STOP: Integers
START (stack): Integers
The top element is 3
The top element is 2
The top element is 1
STOP: Integers
START (queue): Integers
The first in the queue right now is 1
The first has been popped!
The first in the queue right now is 2
The first has been popped!
The first in the queue right now is 3
The first has been popped!
STOP: Integers
START (linked list): Strings
Value: David
Value: Tare
Value: Brume
STOP: Strings
START (stack): Strings
The top element is Brume
The top element is Tare
The top element is David
STOP: Strings
START (queue): Strings
The first in the queue right now is David
The first has been popped!
The first in the queue right now is Tare
The first has been popped!
The first in the queue right now is Brume
The first has been popped!
STOP: Strings- argparse - MIT License