Welcome to my repository of LeetCode problem solutions! 🎉
This repository contains solutions to over 300+ LeetCode problems, covering a wide range of topics including Arrsys, LinkedList, Tree, and more.
- Arrays
- Strings
- Linked Lists
- Trees
- Graphs
- Sorting & Searching
- Recursion
- Mathematics
If you'd like to contribute to this repository by adding more solutions, feel free to fork the repository and create a pull request. Contributions are always welcome!
To contribute:
- Fork this repository.
- Clone your fork to your local machine.
- Create a new branch (
git checkout -b new-solutions). - Add your solution (in the appropriate directory).
- Commit your changes (
git commit -m 'Add new problem solution'). - Push your changes (
git push origin new-solutions). - Create a pull request.
class Node{ int val; Node next; Node(int val){ this.val = val; } }
class TreeNode{ int val; TreeNode left; TreeNode right; TreeNode(int val){ this.val = val; } }
Happy Coding! ✨