A Visual Studio Code extension designed to boost your competitive programming workflow. This extension seamlessly integrates LeetCode problem test cases into your development process, letting you fetch, modify, and validate your solutions with ease! 🧑💻✨
🌟 Features
✅ 1. Fetch Test Cases from LeetCode
🌐 Fetch input and output test cases directly from a LeetCode problem URL.
🗂️ Avoid redundancy by reusing existing test case files.
💾 Automatically saves test cases into files for easy access:
<problem_name>_inputs.txt: Contains input test cases.
<problem_name>_outputs.txt: Contains expected output test cases.
🧮 Handles arrays and matrices automatically by adding their sizes to the input file. No manual edits are needed!
⚡ Shortcut: Use Ctrl+Shift+P and select CPH: Fetch Test Cases.
✏️ 2. Modify Test Cases
Easily edit input and output test cases using the generated files.
Supports running multiple custom test cases for flexibility.
⚙️ 3. Run and Compare
🏃 Run your solution directly from the editor and compare outputs effortlessly.
View the results in the output channel:
- Input
- Expected Output
- Your Output
- Test case status (Pass/Fail)
🧰 Extension Commands
🚀 Command
🔍 Description
CPH-Leetcode: Fetch Test Cases
📥 Fetch test cases from a LeetCode URL.
CPH-Leetcode: Run and Compare
⚙️ Run your solution and compare outputs.
⚙️ Requirements
Programming Languages:
🟩 Python: Ensure python is installed and added to your system's PATH.
🟦 C++: Ensure g++ is installed and added to your system's PATH.
🔮 Future Enhancements
Extend support for more programming languages.
Add submission commands for direct LeetCode integration.
Now the extension is not getting packaged properly so in future this can be done properly so that uiser can directly install extension from vscode extension download.