← All projects

LeetCode Auto-Grind Bot

Cron bot that solves, compiles, verifies and pushes 2 LeetCode problems daily to GitHub.

Source Code ↗2026-06present
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:

  1. Picks the Problem of the Day + one alternating Easy/Medium problem
  2. Generates a Java solution with an LLM
  3. Compiles with javac as a hard gate — broken code never ships
  4. Pushes to my DSA repo in LeetSync format (per-problem folder, README, stats)
  5. 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.