Welcome to the LeetCode Solutions in Java repository! This repository is organized by data structures, containing well-documented solutions to various LeetCode problems implemented in Java.
The solutions are categorized by data structure. Each folder contains solutions to problems that primarily involve the specific data structure, making it easy to navigate and review targeted concepts.
π¦ LeetCode-Solutions-Java
β£ π Arrays
β£ π LinkedLists
β£ π Stacks
β£ π Queues
β£ π Trees
β£ π Graphs
β£ π HashMaps
β£ π Strings
β π README.md
π₯ Getting Started
Clone the Repository
git clone https://github.com/snsupratim/leetcode_solutions_java.git
Navigate to Data Structure Folder
Each folder focuses on a particular data structure. Browse to a specific folder (e.g., Arrays, LinkedLists) to see Java solutions for that data structure.
Compile and Run
Open the desired Java file in your editor or IDE, compile it, and run to see how each solution works
π About the Solutions
Each solution file includes:
Problem Description - A brief description of the problem.
Solution Approach - Explanation of the approach and algorithm used.
Complexity Analysis - Time and space complexity of the solution.
π Data Structure Categories
Hereβs a quick overview of the data structures covered in this repository:
Arrays: Solutions involving operations on arrays, such as sorting, searching, and optimization.
Linked Lists: Problems that deal with singly, doubly, and circular linked lists.
Stacks: Implementations using stacks for problems like balancing brackets, postfix evaluation, etc.
Queues: Solutions utilizing queues and priority queues.
Trees: Problems involving binary trees, binary search trees, and other tree structures.
Graphs: Solutions for graph traversal, shortest path, and connectivity problems.
HashMaps: Problems using hash-based structures for fast access and lookups.
Strings: Solutions focusing on string manipulation, pattern matching, and regular expressions.
π€ Contributing
If you'd like to contribute:
Fork the repository.
Make your changes (ensure they are related to LeetCode solutions).
Submit a pull request with a brief explanation of your solution.
π License
This repository is licensed under the MIT License. For more details, see the LICENSE file.
Happy Coding! π
Feel free to modify any sections based on your needs. This README provides clear structure and guides visitors on using and navigating your repository.