Skip to content

LeetCode AI is a React-based web application that serves as an intelligent coding companion for developers preparing for technical interviews and competitive programming. Built with Groq API integration, this tool transforms the way users approach algorithm problems by providing comprehensive solutions, strategic insights, and performance analysis.

Notifications You must be signed in to change notification settings

lochanlv/Leetcode-AI

Repository files navigation

# LeetCode AI Assistant An intelligent AI-powered chatbot that helps you solve LeetCode problems with comprehensive features including code generation, complexity analysis, test cases, and idea mapping. ## Features - 🤖 **AI-Powered Problem Solving**: Get step-by-step solutions to LeetCode problems - 💻 **Multi-Language Support**: Generate code in Python, JavaScript, Java, and C++ - 🧠 **Idea Mapping**: Visual problem-solving approach with interactive mind maps - ⚡ **Complexity Analysis**: Detailed time and space complexity breakdown - 🧪 **Test Case Generation**: Comprehensive test cases with expected outputs - 🎨 **Modern UI**: Beautiful, responsive interface with syntax highlighting ## Setup Instructions ### 1. Install Dependencies ```bash npm install ``` ### 2. Get Groq API Key 1. Visit [Groq Console](https://console.groq.com/) 2. Sign up for a free account 3. Create a new API key 4. Copy your API key ### 3. Configure Environment Create a `.env` file in the root directory: ```bash VITE_GROQ_API_KEY=your-groq-api-key-here ``` ### 4. Start the Application ```bash npm run dev ``` ## Usage 1. **Start a Conversation**: Describe any LeetCode problem in the chat 2. **Explore Solutions**: Switch between different tabs to see: - **Chat**: Interactive problem-solving conversation - **Idea Map**: Visual problem-solving approach - **Test Cases**: Comprehensive test scenarios - **Complexity**: Time and space complexity analysis ## Example Prompts - "Solve the Two Sum problem" - "Help me with binary tree traversal" - "Explain dynamic programming with examples" - "Generate a solution for the longest common subsequence problem" ## Technologies Used - **React**: Frontend framework - **Groq API**: AI language model integration - **Lucide React**: Beautiful icons - **React Markdown**: Markdown rendering - **React Syntax Highlighter**: Code syntax highlighting - **CSS3**: Modern styling with gradients and animations ## API Key Security ⚠️ **Important**: Never commit your `.env` file to version control. The `.env` file is already included in `.gitignore`. ## Contributing Feel free to submit issues and enhancement requests! # Leetcode-AI

About

LeetCode AI is a React-based web application that serves as an intelligent coding companion for developers preparing for technical interviews and competitive programming. Built with Groq API integration, this tool transforms the way users approach algorithm problems by providing comprehensive solutions, strategic insights, and performance analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published