Skip to content

aaditya0004/leetcode-rewriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

🤯 LeetCode Question Rewriter

Because solving DSA is hard enough…
Why not make it dramatic, meme-worthy, and slightly unhinged?


🎭 What Is This?

A fun AI-powered tool that takes any LeetCode problem and transforms it into:

Story Mode – Ancient kingdoms & emotional damage
😂 Meme Mode (Indian Internet Edition) – Thanos energy + 2AM coder vibes
💡 Hint Mode – Topic + Data Structure + Soft guidance
🔥 Roast Mode – Senior dev judging your life choices

Built for:

  • Developers
  • DSA grinders
  • Content creators
  • People who solve Medium at 3AM and question life

🖼 Preview

Paste a boring problem like:

Given an array of integers, return the longest subarray where...

And get something like:

“In the ancient kingdom of Arithmetica…”

“Bhai, baat aisi hai…”

“Perfectly balanced, as all things should be.”

Chaos. But structured chaos.


🛠 Tech Stack (a.k.a The Avengers)

🧠 AI

  • Gemini API (@google/generative-ai)

🎨 Frontend

  • ⚛ React (Vite)
  • 🎨 Tailwind CSS
  • 📝 React Markdown

🧰 Backend

  • Node.js
  • Express
  • dotenv

🚀 How To Run This Masterpiece

1️⃣ Clone the repo

git clone https://github.com/YOUR_USERNAME/leetcode-rewriter.git
cd leetcode-rewriter

2️⃣ Backend Setup

cd backend
npm install

Create a .env file inside /backend:

GEMINI_API_KEY=your_api_key_here

Run server:

node server.js

Server runs on:

http://localhost:5000

2️⃣ Frontend Setup

cd ../frontend
npm install
npm run dev

Open:

http://localhost:5173

💡 Features That Make It Not-Boring™

🎯 Multiple rewrite modes

🧠 Smart hint detection

🔥 Roast generator

📋 Copy to clipboard

🎨 Clean animated UI

🌌 Dark aesthetic because developers fear light mode

About

Turn boring LeetCode problems into memes, stories & bhai-level explanations using AI.

Topics

Resources

Stars

Watchers

Forks

Contributors