LeetCode Download as Jupyter Notebook

Download LeetCode problems as Jupyter Notebook files.

Pada tanggal 08 April 2025. Lihat %(latest_version_link).

Penulis
eclipher
Nilai
0 0 0
Versi
1.0.0
Dibuat
08 April 2025
Diperbarui
08 April 2025
Size
194 KB
Lisensi
MIT
Berlaku untuk

LeetCode Download as Jupyter Notebook

Feature

This userscript enhances the LeetCode problem page by adding three buttons:

  • Copy Title
  • Copy Description: Copies the problem description in Markdown format, making it easy to paste into your notes or documentation.
  • Download as Jupyter Notebook: Bundles the title, Markdown description, and a code cell into a single .ipynb file.

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).

  1. Install Tampermonkey or a similar userscript manager for your browser.
  2. Download and install the userscript.
  3. Visit a LeetCode problem page, and you should see the new buttons added by the userscript.

Credits

This script is inspired by LeetCode Problem to Markdown.

License

MIT License

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元