This Github repository contains my personal learning journey of data structures and algorithms, with code implementations in C++. It is aimed at anyone who wants to learn about different data structures and algorithms and how to implement them in C++.
- Data Structures
- Algorithms
- How to Run the Code
- Contributing
The following data structures are currently implemented in this repository:
- Array
- Linked List
- Stack
- Queue
- Binary Search Tree
- Heap
The following algorithms are currently implemented in this repository:
- Sorting Algorithms
- Bubble Sort
- Insertion Sort
- Selection Sort
- Merge Sort
- Quick Sort
- Searching Algorithms
- Linear Search
- Binary Search
- Clone the repository using git clone https://github.com/moazamdev/data-structures-and-algorithms.git
- Navigate to the directory using cd data-structures-and-algorithms
- To run a specific program, navigate to the respective folder and run the command g++ -o <program_name> <program_name>.cpp && ./<program_name>
- Alternatively, to run all programs, run the command make in the root directory. This will compile all the programs and create executables which can be run using the command ./<program_name>
If you find a bug or want to suggest an improvement, please feel free to submit a pull request. Contributions are always welcome!