Skip to content

shrenik-jain/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

This repository contains solutions to various LeetCode problems implemented in different programming languages, primarily Python and Java.

Repository Structure

Withing each language folder, (e.g., python, java) you'll find individual files containing the solutions to specific LeetCode problems. You will find a QUESTIONS.md file where all problems are organized according to the [LeetCode Problemset] (https://leetcode.com/problemset/)

Purpose

The primary goal of this repository is to serve as a centralized location for LeetCode problem solutions, allowing you to practice and improve your problem-solving skills across various data structures and algorithms. By studying these solutions, you can gain insights into different approaches and learn from the implementations in multiple programming languages.

License

This repository is licensed under the MIT License, which means you are free to use, modify, and distribute the code as long as you include the original license file.

Related Repository

For more detailed solutions with explanations and thought processes, check out my neetcode-solutions repository, which contains solutions to the 150 coding interview questions from NeetCode, along with comments and explanations.

How to Use

  1. Clone the repository to your local machine using the following command:

    git clone https://github.com/shrenik-jain/leetcode-solutions.git
    
  2. Navigate to the specific language folder (e.g., python or java) and then to the individual file(s) containing the solution(s) you want to study.

  3. Feel free to modify the solutions, experiment with different approaches, or add your own solutions to the repository.

Contributing

Contributions to this repository are welcome! If you have an alternative solution, an optimization, or a new problem solution to add, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes: git checkout -b my-new-feature.
  3. Make the necessary changes and commit them: git commit -am 'Add some feature'.
  4. Push the changes to your forked repository: git push origin my-new-feature.
  5. Submit a pull request detailing your changes.

Contact

If you have any questions, suggestions, or feedback, feel free to reach out to me through email or visit my website.


Happy coding!