LeetHub — a browser plugin that pushes your LeetCode solution to GitHub
Are you practicing the programming problems on LeetCode for your recruitment process or improving your problem-solving skills daily? And when you successfully solve the problems by passing the automated test cases, do you want to push your code on GitHub? You must do so by submitting your code to GitHub. This is the two-step for each leetcode task. First solve the problem and then push your code on GitHub. This becomes a headache if you’re practicing daily on leetcode. “Qasim Wani” developed the LeetHub Chrome extension, which automatically syncs your LeetCode solutions to your GitHub account.
What is LeetHub?
A chrome extension that automatically pushes your code to GitHub when you pass all tests on a LeetCode problem.
How does LeetHub work?
- Open the Google Chrome browser.
- Open the Chrome webstore or paste the URL ‘https://chrome.google.com/webstore/category/extensions’ in the browser.
- Search for LeetHub in the search box.
- Click on the ‘LeetHub’ extension and click on the button ‘Add to Chrome’.
- After adding the extension, click on the ‘LeetHub’ extension in the browser’s top right and it will open the pop-up window as shown in figure-1.
6. Click on the authenticate button and it will redirect you to the GitHub login page for authorization.
7. After authentication and authorization, it will open the page as shown in figure-2 where you can create new repository or linked the existing one. Click on button ‘Get Started’, it will create a new repo or linked with the existing repo with your GitHub account.
8. Now go into your LeetCode account and select any problem that you want to solve it. I choose the “Symmetric Tree” problem from the list at https://leetcode.com/problems/symmetric-tree/'.
9. Solve the problem and click on the ‘Submit’ button as shown in figure-3. If your code passes all the test cases, then your code will automatically be pushed into your GitHub account.
10. Open your GitHub account and go into the repository that you created or linked to, where you can see the code inside the folder of the LeetCode problem name as shown in figure-4.
The LeetHub plugin also keeps track of the number of problems that you solve and pushes them to GitHub as shown in figure-5.
Here you go. I wish you good luck!
A big applause to ‘Qasim Wani’ who developed the open-source plugin and helps the community by developing wonderful plugins that help the developers in their daily routine to practice the leetcode problems and improve their programming skills and maintain their GitHub profile.
LeetHub Repository: https://github.com/QasimWani/LeetHub