LeetCode Toolkit
https://github.com/eclipher/leetcode-toolkit
Feature
This userscript enhances the LeetCode problem page with various tweaking and additions. It supports both the US version of LeetCode.com, and the China version.
(*) Editorial-related features are for US site only, as China site do not seem to lock their editorials behind premium.
About Jupyter Notebook
Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text.
This userscript helps you transfer LeetCode problems into a Jupyter Notebook document, so you can read the problem, write and run the solution, add additional notes, all at one place on your local machine.
You can open .ipynb
notebooks with clients such as VS Code. By default it supports Python, but kernels for many other languages are available too.
Installation
To use this userscript, you'll need a userscript manager like Tampermonkey (available for Chrome, Firefox, and other browsers).
- Install Tampermonkey or a similar userscript manager for your browser.
- Download and install the userscript.
- Visit a LeetCode problem page, and you should see the new features added by the script.
Credits
This script is inspired by the following projects:
License
MIT License