Coding on mobile is hard because it is difficult to code with proper indentations and punctuations. This browser extension allows you to LeetCode on mobile by writing solutions in English.
- Natural Language to Code: Describe your logic in English, get Python code.

- Chat History: Maintains a conversation history per problem so you can refine your solution iteratively.

- Test Case Generation: Evaluates your existing code snippet. If the logic appears incorrect, it generates a single failing test case to help you debug.

Google Chrome does not support extensions on mobile. To use this extension on Mobile, download Microsoft Edge:
Then, copy the link below into your mobile browser: https://microsoftedge.microsoft.com/addons/detail/leetcode-on-the-go/gekpombcbbhihahgepkfkcfkgiihmjhc
Finally, click "Get" to install the extension:

If you would like to use this extension on desktop, you may continue to install the extension on the Chrome Web Store: https://chromewebstore.google.com/detail/leetcode-on-the-go/omolmbaihkobpnhnbjjcipipndhchpma
- Navigate to any LeetCode problem page. For example: https://leetcode.com/problems/two-sum/
- A floating panel will appear in the bottom right.
- Select the "Python3" language for your code editor.
- Type your solution logic in the text area.
- Example: "Create a hash map to store the complement of each number. Iterate through the array, check if complement exists, if so return indices."
- Click Code.
- The extension will generate the Python code and replace the content in the LeetCode editor.
- You can continue the conversation to fix bugs or optimise the solution.
- Clone or download this repository.
- Build the repository:
npm run build - Open Chrome and navigate to
chrome://extensions/. - Enable Developer mode in the top right corner.
- Click Load unpacked.
- Select the
dist/src/folder
npx promptfoo@0.119.14 eval -c promptfoo/code/promptfooconfig.yaml --no-cachenpx promptfoo@0.119.14 eval -c promptfoo/test/promptfooconfig.yaml --no-cacheAdd a --verbose flag. For example,
npx promptfoo@0.119.14 eval -c promptfoo/code/promptfooconfig.yaml --no-cache --verbosenpx promptfoo@0.119.14 view