📦 YunYouJun / LeetCode

📄 README.md · 38 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38# LeetCode

[![LeetCode TOC](https://github.com/YunYouJun/LeetCode/workflows/LeetCode%20TOC/badge.svg)](https://github.com/YunYouJun/LeetCode/actions?query=workflow%3A%22LeetCode+TOC%22)

> 用优雅的方式刷题吧!(自动生成题目信息与推送)

[LeetCode](https://leetcode-cn.com) Practice [TOC 目录](https://yunyoujun.github.io/LeetCode/)

## Language

<code><img height="20" src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/javascript/javascript.png"></code>
<code><img height="20" src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/typescript/typescript.png"></code>
<code><img height="20" src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/python/python.png"></code>

- JavaScript
- TypeScript
- Python3

## Usage

- `npm run test`: Run all test cases by vitest.
- `npm run start`: Start solve problem, input `titleSlug` to generate info
- `npm run solve`: Solve problem and push to github
- `npm run generate:TOC`: Generate TOC
- `npm run lint`: Lint all files by [ESLint](https://eslint.org/)

<!-- ## packages -->
<!-- - [cli: @yunyoujun/leetcode](./packages/cli): [![npm (scoped)](https://img.shields.io/npm/v/@yunyoujun/leetcode)](https://www.npmjs.com/package/@yunyoujun/leetcode) -->

## FAQ

- [x] vitest bug [RangeError: Maximum call stack size exceeded](https://github.com/vitest-dev/vitest/issues/3060)
  - Caused by `.env`. `PYTHONPATH=${workspaceFolder}:${PYTHONPATH}`

## Ref

- [高频题 - CodeTop](https://codetop.cc/)