← All projects
LeetCode Auto-Grind Bot
Cron bot that solves, compiles, verifies and pushes 2 LeetCode problems daily to GitHub.
Source Code ↗2026-06 — present
Node.jsLeetCode APIGeminiGitHub APIcronJava
Key Features
- ◆ Daily POTD + alternating difficulty
- ◆ Compile-gate before commit
- ◆ LeetSync-format GitHub pushes
- ◆ WhatsApp notifications
What it does
Every day, fully automated:
- Picks the Problem of the Day + one alternating Easy/Medium problem
- Generates a Java solution with an LLM
- Compiles with
javacas a hard gate — broken code never ships - Pushes to my DSA repo in LeetSync format (per-problem folder, README, stats)
- Sends me a WhatsApp summary
Why
Consistency beats intensity. The bot keeps the streak alive on travel days; I still solve manually — the bot is the safety net that never misses.
Stack
Node.js on a VPS cron, LeetCode GraphQL API, Gemini for generation, GitHub API for commits.