{"id":28069563,"url":"https://github.com/anuranjanjain/leetcode-practice-tracker","last_synced_at":"2026-05-01T21:33:46.970Z","repository":{"id":292856373,"uuid":"982167388","full_name":"AnuranjanJain/LEETCODE-PRACTICE-TRACKER","owner":"AnuranjanJain","description":"I built this Python tool to make coding practice smoother \u0026 more organized. ✨ Key Features: 📂 Daily Problem Organization 🤖 Automated Solution Explanations (AI-optional \u0026 offline modes!) 📈 Progress Statistics \u0026 Streaks seamlessly direct to GitHub!","archived":false,"fork":false,"pushed_at":"2025-05-13T17:18:17.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T18:49:01.876Z","etag":null,"topics":["automation","github","openai","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnuranjanJain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-12T13:25:54.000Z","updated_at":"2025-05-13T17:18:20.000Z","dependencies_parsed_at":"2025-05-12T14:47:10.487Z","dependency_job_id":"41d51d4e-96fa-44be-bf62-72a6dc07c96a","html_url":"https://github.com/AnuranjanJain/LEETCODE-PRACTICE-TRACKER","commit_stats":null,"previous_names":["anuranjanjain/leetcode-practice-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AnuranjanJain/LEETCODE-PRACTICE-TRACKER","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnuranjanJain%2FLEETCODE-PRACTICE-TRACKER","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnuranjanJain%2FLEETCODE-PRACTICE-TRACKER/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnuranjanJain%2FLEETCODE-PRACTICE-TRACKER/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnuranjanJain%2FLEETCODE-PRACTICE-TRACKER/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnuranjanJain","download_url":"https://codeload.github.com/AnuranjanJain/LEETCODE-PRACTICE-TRACKER/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnuranjanJain%2FLEETCODE-PRACTICE-TRACKER/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003529,"owners_count":26083595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","github","openai","python"],"created_at":"2025-05-12T19:09:12.833Z","updated_at":"2025-10-10T10:23:10.619Z","avatar_url":"https://github.com/AnuranjanJain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🏆 LeetCode Practice Tracker\n\nWelcome to the **LeetCode Practice Tracker**!  \nThis tool helps you manage your LeetCode journey, track your progress, and maintain a beautifully organized repository of your solutions—complete with auto-generated explanations and statistics.\n\n---\n\n## 🚀 Features\n\n- **Add New Problems Easily:**  \n  Add LeetCode problems by URL, interactively, or with manual details. The script fetches problem metadata automatically!\n\n- **Organized by Day:**  \n  Solutions are grouped by day, making it easy to track your daily progress and maintain streaks.\n\n- **Auto-Generated Explanations:**  \n  Get detailed, well-formatted markdown explanations for your solutions—powered by code analysis or OpenAI (if you have an API key).\n\n- **Progress Dashboard:**  \n  The main README and day-specific READMEs show your total problems solved, days completed, and difficulty breakdown.\n\n- **Statistics \u0026 Streaks:**  \n  View your current streak, longest streak, and a breakdown of problems by difficulty.\n\n- **Header Standardization:**  \n  Automatically update and standardize headers in all your solution files.\n\n- **GitHub Integration:**  \n  Commit and push your progress to GitHub with a single command.\n\n- **Customizable AI Service:**  \n  Choose between local (free) code analysis or OpenAI for generating explanations.\n\n---\n\n## 📦 Directory Structure\n\n```\n.\n├── update_leetcode.py      # Main script\n├── readme.md               # Main progress dashboard (auto-generated)\n└── practice/\n    ├── day_1/\n    │   ├── two_sum.py\n    │   ├── two_sum.md\n    │   └── README.md\n    ├── day_2/\n    │   ├── ...\n    │   └── README.md\n    └── ...\n```\n\n- Each `day_X` folder contains your solutions and explanations for that day.\n- Each day has its own `README.md` summarizing the problems solved.\n\n---\n\n## 🛠️ How to Use\n\n1. **Run the Script:**\n   ```bash\n   python update_leetcode.py\n   ```\n   This launches an interactive menu.\n\n2. **Menu Options:**\n   - Add new problems (by URL, interactively, or manually)\n   - Update all solution headers\n   - Rebuild the main README\n   - View statistics\n   - Generate or regenerate explanations\n   - Generate day-specific READMEs\n   - Configure API keys (for OpenAI)\n   - Select AI service (local or OpenAI)\n   - Upload your progress to GitHub\n\n3. **Adding Problems:**\n   - Enter the LeetCode URL or details as prompted.\n   - The script fetches the problem name, difficulty, and creates a solution file with a standardized header.\n\n4. **Generating Explanations:**\n   - Explanations are generated for each solution, either using local code analysis or OpenAI (if configured).\n   - Markdown files are created alongside your solution files.\n\n5. **Uploading to GitHub:**\n   - Use the menu to commit and push your changes directly to your repository.\n\n---\n\n## 🤖 AI-Powered Explanations\n\n- **Local (Free):**  \n  Uses rule-based code analysis to generate detailed explanations, including approach, steps, complexity, alternatives, and insights.\n\n- **OpenAI (Optional):**  \n  If you have an OpenAI API key, you can generate even richer explanations using GPT models.\n\n---\n\n## 📊 Example Statistics Output\n\n```\nTotal Days: 10\nTotal Problems: 25\nCurrent Streak: 5 days\nLongest Streak: 7 days\n\nDifficulty Breakdown:\n  - Easy: 8 (32.0%)\n  - Medium: 13 (52.0%)\n  - Hard: 4 (16.0%)\n```\n\n---\n\n## 🔑 API Key Configuration\n\n- For OpenAI explanations, set your API key as an environment variable:\n  - **Windows:** `set OPENAI_API_KEY=your-api-key`\n  - **Linux/Mac:** `export OPENAI_API_KEY=your-api-key`\n- You can also configure this interactively via the menu.\n\n---\n\n## 💡 Why Use This Tracker?\n\n- **Stay Consistent:**  \n  Build and maintain your LeetCode streak with daily tracking.\n- **Learn Effectively:**  \n  Each solution is paired with a clear, structured explanation.\n- **Showcase Your Progress:**  \n  Auto-generated READMEs make your repository a great portfolio piece.\n- **Automate the Boring Stuff:**  \n  Focus on solving problems—let the script handle organization and documentation.\n\n---\n\n## 📝 License\n\nThis project is open-source and free to use.  \nCreated with ❤️ by [AnuranjanJain](github.com/Anuranjanjain).\n\n---\n\n## 🌟 Happy Coding \u0026 Keep Crushing LeetCode!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuranjanjain%2Fleetcode-practice-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuranjanjain%2Fleetcode-practice-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuranjanjain%2Fleetcode-practice-tracker/lists"}