Table of Contents
Welcome to the comprehensive repository of data structures and algorithms, primarily implemented in C++ with a bit of Java! ππ This repository aims to provide clear explanations, test cases, and solutions that range from naive brute force to highly optimized approaches.
- Wide Range of Algorithms: Covers various data structures and algorithms including arrays, linked lists, stacks, queues, trees, graphs, and more.
- Multiple Approaches: Solutions from naive brute force to optimized algorithms.
- Complete Examples: Each implementation includes a full code example with a main function for easy testing.
- Detailed Explanations: Clear explanations to help understand the concepts and implementations.
This repository stands out by providing:
- Multiple approaches for each problem (brute force to optimal)
- Complexity for quick reference
- Ready-to-run code with test cases
- Beginner-friendly explanations
Whether youβre preparing for interviews, learning DSA, or contributing, this repo is designed for clarity and depth.
Algorithm | Time Complexity | Space Complexity |
---|---|---|
Linear Search | ||
Binary Search | ||
Bubble Sort | ||
Merge Sort | ||
Quick Sort | ||
... | ... | ... |
Clone the repository and run your first algorithm in seconds:
git clone https://github.com/imShubh03/data-structures-algorithms.git
cd data-structures-algorithms
g++ Arrays/L1/largesteleminarray.cpp -o largesteleminarray.exe
./largesteleminarray.exe
For Java:
javac Arrays/L1/SomeAlgorithm.java
java SomeAlgorithm
To get started, clone this repository to your local machine:
git clone https://github.com/imShubh03/data-structures-algorithms.git
compile the C++ code using:
g++ filename.cpp
./a.exe (for windows) or ./a.out (for linux)
compile the Java code using:
javac filename.java
java classname
Each algorithm or data structure is provided in its own file with a main function to demonstrate its functionality. You can run the examples to see the implementation in action.
Contributions are welcome! If you have improvements, new algorithms, or bug fixes, please feel free to submit a pull request. You can also open issues to report bugs or suggest features.
For any questions or suggestions, you can reach out to me at :
shubh.sonake17@gmail.com
Thank you for checking out this repository. Happy coding! πβ¨