The Wayback Machine - https://web.archive.org/web/20201218104703/https://github.com/jlice/leetcode-publisher
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

简体中文 | English

leetcode-publisher

LeetCode 题解仓库自动生成与发布。

样例:My accepted leetcode solutions

使用方法

  1. 下载本工具
$ git clone https://github.com/jlice/leetcode-publisher.git
  1. 安装依赖(需要Python 3.5或更高版本)
$ cd leetcode-publisher
$ pip install -r requirements.txt
  1. 配置(复制config.example.ymlconfig.yml,然后编辑之)
$ cp config.example.yml config.yml
$ vim config.yml
  1. 尽情使用!
$ python src/app.py

说明

本工具会自动获取你在 LeetCode 上的数据,并缓存至_cache文件夹,这样你就不需要从 LeetCode 重复获取数据。

题解仓库生成在repo文件夹,每次生成前会删除该文件夹。_source文件夹里的内容在生成时会复制到repo文件夹下。

README和题解的模板采用Jinja2编写,位于templ文件夹。

只获取与展示通过的代码。如果同一编程语言的代码多次通过,只展示最新的。如果使用多个编程语言答题,会展示多个编程语言的解答。

协议

The MIT License

About

📙 Automatically generate and publish LeetCode solution repository ❤️ LeetCode题解仓库自动生成与发布

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.