Welcome to the LeetCode repository! This project is dedicated to solving LeetCode puzzles, focusing on algorithms and data structures. Here, you'll find various coding challenges in multiple programming languages, including C++, Java, and Python.
To get started with this repository, you can clone it to your local machine. Use the following command:
git clone https://github.com/sahanmfs/LeetCode.git
Once you have cloned the repository, navigate to the project directory:
cd LeetCode
You can now explore the various coding challenges and solutions provided in this repository.
- Diverse Challenges: Solve a wide range of problems that cover different topics in algorithms and data structures.
- Multiple Languages: Code solutions in C++, Java, and Python.
- Structured Solutions: Each solution follows a consistent structure, making it easy to understand.
- Test Cases: Each challenge includes test cases to validate your solutions.
- Continuous Integration: We use GitHub Actions to ensure code quality and automate testing.
This repository includes solutions in the following programming languages:
- C++: Fast and efficient, ideal for competitive programming.
- Java: Widely used in interviews and enterprise applications.
- Python: Great for quick prototyping and easy to read.
We welcome contributions! If you want to contribute to this repository, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your message here"
- Push to your branch:
git push origin feature/your-feature-name
- Create a pull request.
Please ensure your code follows the existing style and includes comments where necessary.
You can find the latest releases of this project here. Download the necessary files and execute them to run the solutions.
This repository focuses on the following topics:
- Algorithms: Explore sorting, searching, and dynamic programming algorithms.
- Data Structures: Learn about arrays, linked lists, trees, graphs, and more.
- Coding Challenges: Engage with various problems that test your coding skills.
- Interview Prep: Prepare for technical interviews with relevant problems.
Here are some example problems you can find in this repository:
-
Two Sum: Given an array of integers, return indices of the two numbers such that they add up to a specific target.
-
Reverse Linked List: Reverse a singly linked list.
-
Binary Tree Inorder Traversal: Given a binary tree, return the inorder traversal of its nodes' values.
-
Valid Parentheses: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
-
Merge Intervals: Given a collection of intervals, merge all overlapping intervals.
Here are some images to illustrate the repository theme:
For any questions or suggestions, feel free to reach out:
- Email: [email protected]
- Twitter: @sahanmfs
- LinkedIn: sahanmfs
Thank you for checking out the LeetCode repository! Happy coding!