caio-andres/leetcode-challenge
حول
This is the LeetCode Challenge, a collaborative project by @caio-andres, @matheusaudibert, and @enzowxl. Fork this project and join us!
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلEste é o Readme do projeto em inglês, caso prefira acompanhar o Readme em Português-BR, clique aqui
LeetCode Challenge
About LeetCode
LeetCode is a premier platform for practicing coding problems and preparing for technical interviews. It offers a vast collection of problems that help developers enhance their algorithmic skills.
Project Overview
This repository is a collaborative effort by @matheusaudibert, @caio-andres and @enzowxl. Our mission is to solve one LeetCode problem each day, documenting our solutions and explanations to foster learning and growth.
Getting Started
To contribute to or use this repository, you'll need to set up your environment first. The project uses Python to fetch and process LeetCode problems.
Prerequisites
- Python 3.6 or higher
- pip (Python package installer)
Installation
Clone the repository
git clone https://github.com/caio-andres/leetcode-challenge.git cd leetcode-challengeCreate a virtual environment (optional but recommended)
python -m venv .venv # On Windows .venv\Scripts\activate # On macOS/Linux source .venv/bin/activateInstall the required dependencies
pip install -r requirements.txt
Using the Problem Generator Script
The repository includes a script to automatically fetch problems from LeetCode and create the directory structure:
Run the script
python get_problem.pyEnter the LeetCode problem ID when prompted
Digite o ID do problema: 1The script will:
- Fetch the problem details from LeetCode
- Create the necessary directory structure
- Generate description files in both English and Portuguese
- Create a template solution file in Python
Observation: Check if problem generate is the same what you wish to commit to this repo. If not, check title problem in here LINK and catch it in "question id".
Directory Structure
After running the script, a new problem directory will be created following the repository structure pattern:
problems/
└── solutions/
└── 0001-two-sum/
├── en/
│ ├── description.md
│ └── explanation.md
├── pt/
│ ├── descricao.md
│ └── explicacao.md
└── solution.py
Now you're ready to solve LeetCode problems and contribute to the project!
Summary
Here you will find the summary of all the problems we have solved. Each problem is documented with its description, solution, and explanation.
To view the full summary of all exercises, simply access the summary.md.
If you wish to filter problems by difficulty, you can check the following files:
Repository Structure
Each problem is organized in its own directory, containing:
- description.md: The problem statement.
- explanation.md: A detailed explanation of the approach and logic used.
- solution.py: The implemented solution in Python.
- solution.xx: The implemented solution in any other language.
Multilingual Support
To cater to a broader audience, we provide documentation in both English and Portuguese. The structure for each problem is as follows:
├── problems
│ └── solutions
│ ├── 001-two-sum
│ │ ├── en/
│ │ │ ├── description.md
│ │ │ └── explanation.md
│ │ ├── pt/
│ │ │ ├── descricao.md
│ │ │ └── explicacao.md
│ │ ├── solution.py
│ │ └── solution.xx
This format ensures consistency and makes it easy to navigate through the problems we've tackled in both languages.
Our LeetCode Statistics
We utilize the LeetCode-Stats-Card todisplay our current statistics. Here are our individual stats:
Current Progress
- Total Problems Solved: 24
- Last Problem made: 112. Path Sum
We are committed to maintaining this streak and continuously expanding our repository with new challenges and solutions.
Badges
LeetCode offers a variety of badges to recognize achievements and milestones throughout your problem-solving journey. These badges appear on user profiles and represent accomplishments like solving problems across different difficulties, maintaining daily streaks, and more.
To see the full list of available badges and learn how to earn each one, check out: badges.md
Contributions
Contributions are welcome! If you'd like to add solutions in another langagues, improve existing ones, or provide explanations, feel free to fork the repository and submit a pull request.
Contributors
Contact
For any questions or suggestions, please reach out to us by accessing our discord: Servidor do Programadores.
Or feel free to connect with us on LinkedIn: Matheus Audibert, Caio André, Enzo Almedida.
To show support give this repo a ⭐ star! It means a lot, thank you :)
Este é o Readme do projeto em inglês, caso prefira acompanhar o Readme em Português-BR, clique aqui
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…