Welcome to my Data Structures and Algorithms (DSA) repository! This repo contains the code I wrote while learning DSA concepts for the first time. It includes a variety of problems and solutions implemented in C and C++. It serves as a personal reference and may help others who are just starting out as well.
- Arrays & Strings: Traversal, Searching, Sorting, and more
- Linked Lists: Singly, Doubly, and Circular Linked Lists
- Stacks & Queues: Implementation using arrays and linked lists
- Trees & Graphs: Binary Trees, Binary Search Trees, Graph Traversal (DFS, BFS)
- Hashing: Hash Tables, Hash Maps
- Sorting Algorithms: Quick Sort, Merge Sort, Bubble Sort, etc.
- Searching Algorithms: Binary Search, Linear Search, etc.
To run any of the DSA programs in this repo:
-
Clone the repo:
git clone https://github.com/schak04/data-structures-algorithms.git
-
Navigate into the project folder:
cd data-structures-algorithms
-
Compile and run a program (example for
binary_search.cpp
):g++ binary_search.cpp -o binary_search ./binary_search
Each .c
and .cpp
file contains a solution for a specific DSA problem or concept. The naming conventions may vary.
This repository is a work in progress. I will continue to add more code and examples as I explore new DSA concepts, projects, and challenges. Stay tuned for more updates!