Skip to content

lil-brumski/Brumski-DSA-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brumski-DSA-Learning

Prerequisites:

  • CMake
  • C++ 23 Compiler
  • Git
  • Working command line

Table of Contents


How to build:

 git clone --recurse-submodules https://github.com/lil-brumski/Brumski-DSA-Learning.git

or

git clone https://github.com/lil-brumski/Brumski-DSA-Learning.git
git submodule update --init --recursive

Then

cd Brumski-DSA-Learning
mkdir build
cd build
cmake ..
cmake --build . -j$(nproc)

Running executable:

Run the executable: ./brumski_dsa

Example:

1. Integer Linked List

$ ./brumski_dsa --intll 1 2 3 4

START (linked list): Integers
Value: 1
Value: 2
Value: 3
Value: 4
STOP: Integers

2. String Linked List

$ ./brumski_dsa --stringll "Nigeria" "Ghana" "Cameroon"

START (linked list): Strings
Value: Nigeria
Value: Ghana
Value: Cameroon
STOP: Strings

3. Float Linked List

$ ./brumski_dsa --floatll 2.1 3.2 4.3

START (linked list): Floats
Value: 2.1
Value: 3.2
Value: 4.3
STOP: Floats

4. Integer Stack

$ ./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

5. String Stack

$ ./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

6. Float Stack

$ ./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

7. Integer Queue

$ ./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

8. String Queue

$ ./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

9. Float Queue

$ ./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

10. Combination

$ ./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

Docs were generated using Doxygen

This project using the following external libraries:

About

For tracking my DSA learning

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors