This repository contains my solutions to various LeetCode problems. It's a collection of my coding journey as I tackle algorithmic challenges and improve my problem solving skills.
The repository is organized into different categories, making it easier to navigate and find solutions to specific types of problems:
- Data Structures: Solutions related to arrays, linked lists, trees, and more.
- Algorithms: Solutions involving sorting, searching, dynamic programming, and more.
- String Manipulation: Problems related to string operations and manipulations.
- Math: Math-related problems and puzzles.
- Database (SQL): SQL query solutions for database-related problems. (We will practice and solve in Future (Soon) Inshallah.
- Interview Practice: Problems commonly asked in technical interviews.
The repository is structured as follows:
├── Data Structures │ ├── Array │ ├── Linked List │ ├── Tree │ └── ....
├── Algorithms │ ├── Sorting │ ├── Searching │ ├── Dynamic Programming │ └── ....
├── String Manipulation │ ├── Valid Parentheses │ ├── Longest Substring Without Repeating Characters │ └── ....
├── Math │ ├── Integer to Roman │ ├── Roman to Integer │ └── ...
├── Database (SQL) │ ├── Sort the People │ ├── Find Duplicates Values │ └── ...
├── Interview Practice │ ├── Two Sum │ ├── Add Two Numbers │ ├── Majority Element │ └── ...
└── ...
To explore the solutions:
-
Clone this repository to your local machine: git clone https://github.com/ZaidArman/leetcode-practice.git
-
Navigate to the problem category and specific problem directory you are interested in.
-
Open the solution file (usually named
filename.py
orfilename.sql
) to view the code. -
Read the problem statement and explanation in the
README.md
file within each problem directory.
You're welcome to contribute your own solutions or improvements! Here's how you can contribute:
-
Fork the repository to your GitHub account.
-
Clone the forked repository to your local machine: git clone https://github.com/ZaidArman/leetcode-practice.git
-
Create a new branch for your feature or bug fix:
-
Make your changes, commit, and push to your forked repository:
-
Create a pull request from your forked repository to this repository.
- Zaid Ullah
- GitHub: Zaid Arman (https://github.com/ZaidArman)
- LinkedIn: Zaid Ullah (https://www.linkedin.com)
This project is licensed under the MIT License.
Happy coding :)