I built a tool that auto-pushes your accepted LeetCode solutions to GitHub with AI-generated commit messages
The problem Every time I solved a LeetCode problem, I had to manually copy the solution to GitHub. Boring, repetitive, easy to forget. So I automated it. What it does leetcode-sync is a self-hosted...

Source: DEV Community
The problem Every time I solved a LeetCode problem, I had to manually copy the solution to GitHub. Boring, repetitive, easy to forget. So I automated it. What it does leetcode-sync is a self-hosted tool that detects when you submit an accepted solution on LeetCode and automatically: Generates a file header with algorithm explanation + time/space complexity (via Claude AI) Creates a descriptive git commit message Pushes the file to a structured GitHub repo organized by year and month Updates a README with your Easy/Medium/Hard stats The result Your GitHub repo ends up looking like this: 2026/ 04-april/ 20260403_two-sum_easy.py 20260403_add-two-numbers_medium.cpp With commit messages like: solve(easy): two-sum - hash map, time O(n), space O(n) solve(medium): longest-substring - sliding window, time O(n), space O(k) And each file has an auto-generated header: """ Problem : Two Sum Difficulty : Easy URL : https://leetcode.com/problems/two-sum/ Approach : Hash map to store complements. For