Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masx200/leetcode-test
leetcode题解和一些测试工具
https://github.com/masx200/leetcode-test
cpp golang kotlin leetcode leetcode-solutions typescript
Last synced: about 2 months ago
JSON representation
leetcode题解和一些测试工具
- Host: GitHub
- URL: https://github.com/masx200/leetcode-test
- Owner: masx200
- License: mulanpsl-2.0
- Created: 2022-03-30T11:09:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T14:59:58.000Z (3 months ago)
- Last Synced: 2024-10-16T15:03:51.960Z (2 months ago)
- Topics: cpp, golang, kotlin, leetcode, leetcode-solutions, typescript
- Language: TypeScript
- Homepage:
- Size: 7.59 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: change-minimum-characters-to-satisfy-one-of-three-conditions/index.ts
- License: LICENSE
Awesome Lists containing this project
README
# leetcode-test
#### 介绍
leetcode 测试和题解,包含 c++/typescript/golang/kotlin 版本.
### 软件架构
#### 软件架构说明
这里有一些测试的工具:
### maven
[![](https://jitpack.io/v/masx200/leetcode-test.svg)](https://jitpack.io/#masx200/leetcode-test)
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
maven
```xml
jitpack.io
https://jitpack.io
```
Step 2. Add the dependency
```xml
com.github.masx200
leetcode-test
10.9.2```
#### 安装教程
1.安装`deno`
2.安装 `udd`
#### 使用说明
1.测试
```bash
deno task test
```2.升级依赖
```bash
deno task udd
```3.格式化
```shell
deno task fmt
```4.lint
```bash
deno task lint
```5.type check
```bash
deno task check
```### Deno
1.导入模块
指定版本号
```ts
import {} from "https://deno.land/x/[email protected]/mod.ts";
```2.使用举例
```ts
import { climbing_stairs_bigint } from "https://deno.land/x/[email protected]/mod.ts";
``````ts
import climbing_stairs from "https://deno.land/x/[email protected]/climbing-stairs/index.ts";
````deno` 要设定`--import-map`参数
```
--import-map https://denopkg.com/masx200/[email protected]/import_map.json
```### Golang
```bash
go get github.com/masx200/leetcode-test
```#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request### Building a Monorepo in Golang
.vscode/settings.json
```json
{
"gopls": {
"experimentalWorkspaceModule": true
}
}
```##### 包含的内容如下
展开查看
https://leetcode.cn/problems/watering-plants
https://leetcode.cn/problems/kth-ancestor-of-a-tree-node
https://leetcode.cn/problems/counter-ii/
https://leetcode.cn/problems/flipping-an-image/
https://leetcode.cn/problems/allow-one-function-call/
https://leetcode.cn/problems/chunk-array
https://leetcode.cn/problems/create-hello-world-function
https://leetcode.cn/problems/gas-station
https://leetcode.cn/problems/distribute-coins-in-binary-tree
https://leetcode.cn/problems/binary-tree-cameras
https://leetcode.cn/problems/snail-traversal/
https://leetcode.cn/problems/function-composition
https://leetcode.cn/problems/array-reduce-transformation/
https://leetcode.cn/problems/curry
https://leetcode.cn/problems/memoize-ii/
https://leetcode.cn/problems/cache-with-time-limit/
https://leetcode.cn/problems/sleep
https://leetcode.cn/problems/array-prototype-last
https://leetcode.cn/problems/counter
https://leetcode.cn/problems/filter-elements-from-array
https://leetcode.cn/problems/apply-transform-over-each-element-in-array
https://leetcode.cn/problems/maximum-sum-of-two-non-overlapping-subarrays
https://leetcode.cn/problems/promise-pool/
https://leetcode.cn/problems/memoize
https://leetcode.cn/problems/check-if-object-instance-of-class/
https://leetcode.cn/problems/generate-fibonacci-sequence
https://leetcode.cn/problems/json-deep-equal
https://leetcode.cn/problems/nested-array-generator/
https://leetcode.cn/problems/flatten-deeply-nested-array
https://leetcode.cn/problems/promise-time-limit/
https://leetcode.cn/problems/design-cancellable-function/
https://leetcode.cn/problems/group-by
https://leetcode.cn/problems/debounce
https://leetcode.cn/problems/animal-shelter-lcci
https://leetcode.cn/problems/reverse-nodes-in-even-length-groups/
https://leetcode.cn/problems/find-the-minimum-and-maximum-number-of-nodes-between-critical-points
https://leetcode.cn/problems/implement-magic-dictionary
https://leetcode.cn/problems/design-linked-list/
https://leetcode.cn/problems/maximum-sum-with-exactly-k-elements
https://leetcode.cn/problems/calculate-delayed-arrival-time/
https://leetcode.cn/problems/sum-multiples/
https://leetcode.cn/problems/left-and-right-sum-differences
https://leetcode.cn/problems/difference-between-element-sum-and-digit-sum-of-an-array
https://leetcode.cn/problems/flip-columns-for-maximum-number-of-equal-rows
https://leetcode.cn/problems/expression-add-operators/
https://leetcode.cn/problems/minimum-number-of-frogs-croaking
https://leetcode.cn/problems/largest-rectangle-in-histogram
https://leetcode.cn/problems/frog-jump-ii
https://leetcode.cn/problems/construct-quad-tree
https://leetcode.cn/problems/split-a-circular-linked-list/
https://leetcode.cn/problems/ipo
https://leetcode.cn/problems/print-in-order/
https://leetcode.cn/problems/print-foobar-alternately
https://leetcode.cn/problems/zigzag-iterator/
https://leetcode.cn/problems/traffic-light-controlled-intersection/
https://leetcode.cn/problems/web-crawler-multithreaded/
https://leetcode.cn/problems/letter-tile-possibilities
https://leetcode.cn/problems/print-zero-even-odd/
https://leetcode.cn/problems/powerful-integers
https://leetcode.cn/problems/maximum-sum-bst-in-binary-tree
https://leetcode.cn/problems/building-h2o
https://leetcode.cn/problems/equal-row-and-column-pairs
https://leetcode.cn/problems/count-vowel-strings-in-ranges
https://leetcode.cn/problems/maximum-number-of-weeks-for-which-you-can-work
https://leetcode.cn/problems/subarray-sum-equals-k
https://leetcode.cn/problems/modify-graph-edge-weights
https://leetcode.cn/problems/average-value-of-even-numbers-that-are-divisible-by-three/
https://leetcode.cn/problems/the-masseuse-lcci
https://leetcode.cn/problems/number-of-employees-who-met-the-target/
https://leetcode.cn/problems/cherry-pickup-ii
https://leetcode.cn/problems/cherry-pickup