Skip to content

Explore a collection of data structures and algorithms, mainly in C++ with some Java! πŸš€πŸ“Š Find clear explanations, test cases, and solutions from brute to highly optimized approaches .Each implementation contains a code example with the main function for easy testingπŸ§‘β€πŸ’»πŸ” Contributions are welcome! πŸŽ‰πŸ“šβœ¨

License

Notifications You must be signed in to change notification settings

imShubh03/Data-Structures-Algorithms

Repository files navigation

DSA Banner

GitHub stars License Top language Contributors

Data Structures and Algorithms

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.

πŸ“š Features

  • 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.

Why This Repository?

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.

Complexity Analysis

Algorithm Time Complexity Space Complexity
Linear Search $O(n)$ $O(1)$
Binary Search $O(\log n)$ $O(1)$
Bubble Sort $O(n^2)$ $O(1)$
Merge Sort $O(n \log n)$ $O(n)$
Quick Sort $O(n \log n)$ $O(\log n)$
... ... ...

Quick Start

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

πŸ› οΈ Installation

To get started, clone this repository to your local machine:

git clone https://github.com/imShubh03/data-structures-algorithms.git

🧭Navigate to the desired directory and

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

πŸ“„ Usage

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.

πŸ§‘β€πŸ’» Contributing

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.

πŸ“§ Contact

For any questions or suggestions, you can reach out to me at :

shubh.sonake17@gmail.com

πŸŽ‰ Acknowledgments

Thank you for checking out this repository. Happy coding! πŸŽ‰βœ¨

About

Explore a collection of data structures and algorithms, mainly in C++ with some Java! πŸš€πŸ“Š Find clear explanations, test cases, and solutions from brute to highly optimized approaches .Each implementation contains a code example with the main function for easy testingπŸ§‘β€πŸ’»πŸ” Contributions are welcome! πŸŽ‰πŸ“šβœ¨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published