leetcode-test

介绍

leetcode 测试

软件架构

软件架构说明

包含的内容如下

https://leetcode-cn.com/problems/reverse-linked-list/

https://leetcode-cn.com/problems/html-entity-parser/

https://leetcode-cn.com/problems/two-sum/

https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/

https://leetcode-cn.com/problems/climbing-stairs/

https://leetcode-cn.com/problems/fibonacci-number/

https://leetcode-cn.com/problems/merge-sorted-array/

https://leetcode-cn.com/problems/powx-n/

https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof/

https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array

https://leetcode-cn.com/problems/move-zeroes/

https://leetcode-cn.com/problems/unique-morse-code-words/

https://leetcode-cn.com/problems/shu-zhi-de-zheng-shu-ci-fang-lcof/

https://leetcode-cn.com/problems/sqrtx/

https://leetcode-cn.com/problems/jJ0w9p/

https://leetcode-cn.com/problems/reverse-linked-list-ii/

https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/

https://leetcode-cn.com/problems/kth-node-from-end-of-list-lcci/

https://leetcode-cn.com/problems/merge-two-sorted-lists/

https://leetcode-cn.com/problems/he-bing-liang-ge-pai-xu-de-lian-biao-lcof/

https://leetcode-cn.com/problems/vvXgSW/

https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/

https://leetcode-cn.com/problems/merge-k-sorted-lists/

https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array-ii/

https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii/

https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list/

https://leetcode-cn.com/problems/linked-list-cycle/

https://leetcode-cn.com/problems/linked-list-cycle-ii/

https://leetcode-cn.com/problems/richest-customer-wealth/

https://leetcode-cn.com/problems/palindrome-linked-list/

https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof

https://leetcode-cn.com/problems/UHnkqh/

https://leetcode-cn.com/problems/intersection-of-two-linked-lists-lcci/

https://leetcode-cn.com/problems/intersection-of-two-linked-lists/

https://leetcode-cn.com/problems/merge-in-between-linked-lists/

https://leetcode-cn.com/problems/middle-of-the-linked-list/

https://leetcode-cn.com/problems/super-pow/

https://leetcode-cn.com/problems/implement-queue-using-stacks

https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/

https://leetcode-cn.com/problems/decode-string/

https://leetcode-cn.com/problems/binary-tree-inorder-traversal/

https://leetcode-cn.com/problems/binary-tree-preorder-traversal/

https://leetcode-cn.com/problems/binary-tree-postorder-traversal/

https://leetcode-cn.com/problems/balanced-binary-tree

https://leetcode-cn.com/problems/invert-binary-tree/

https://leetcode-cn.com/problems/maximum-depth-of-binary-tree

https://leetcode-cn.com/problems/symmetric-tree/

https://leetcode-cn.com/problems/mini-parser/

https://leetcode-cn.com/problems/lexicographical-numbers/

https://leetcode-cn.com/problems/binary-search/

https://leetcode-cn.com/problems/sorted-merge-lcci/

https://leetcode-cn.com/problems/shortest-distance-to-a-character/

https://leetcode-cn.com/problems/sort-an-array/

https://leetcode-cn.com/problems/aMhZSa/

https://leetcode-cn.com/problems/sort-list

https://leetcode-cn.com/problems/7WHec2

https://leetcode-cn.com/problems/longest-absolute-file-path

https://leetcode-cn.com/problems/add-strings/

https://leetcode-cn.com/problems/valid-parentheses

https://leetcode-cn.com/problems/hamming-distance/

https://leetcode-cn.com/problems/single-number-ii/

https://leetcode-cn.com/problems/single-number/

https://leetcode-cn.com/problems/counting-bits/

https://leetcode-cn.com/problems/implement-rand10-using-rand7/

https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/

https://leetcode-cn.com/problems/add-two-numbers/

https://leetcode-cn.com/problems/maximum-subarray/

https://leetcode-cn.com/problems/power-of-two/

https://leetcode-cn.com/problems/power-of-three/

https://leetcode-cn.com/problems/goat-latin/

https://leetcode-cn.com/problems/power-of-four/

https://leetcode-cn.com/problems/reverse-string/

https://leetcode-cn.com/problems/implement-strstr/

https://leetcode-cn.com/problems/find-the-difference/

https://leetcode-cn.com/problems/max-consecutive-ones/

https://leetcode-cn.com/problems/maximum-width-of-binary-tree/

https://leetcode-cn.com/problems/clumsy-factorial/

https://leetcode-cn.com/problems/rotate-function/

https://leetcode-cn.com/problems/er-cha-shu-de-shen-du-lcof

https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal/

https://leetcode-cn.com/problems/binary-tree-level-order-traversal/

https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii/

https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/

https://leetcode-cn.com/problems/maximum-depth-of-n-ary-tree/

https://leetcode-cn.com/problems/n-ary-tree-preorder-traversal/

https://leetcode-cn.com/problems/n-ary-tree-postorder-traversal/

https://leetcode-cn.com/problems/average-of-levels-in-binary-tree/

https://leetcode-cn.com/problems/hPov7L/

https://leetcode-cn.com/problems/find-largest-value-in-each-tree-row/

https://leetcode-cn.com/problems/partition-list/

https://leetcode-cn.com/problems/add-to-array-form-of-integer/

https://leetcode-cn.com/problems/string-to-integer-atoi/

https://leetcode-cn.com/problems/design-circular-deque/

https://leetcode-cn.com/problems/making-a-large-island

https://leetcode-cn.com/problems/island-perimeter/

https://leetcode-cn.com/problems/max-area-of-island/

https://leetcode-cn.com/problems/number-of-islands/

https://leetcode-cn.com/problems/implement-trie-prefix-tree

https://leetcode-cn.com/problems/longest-word-in-dictionary/

https://leetcode-cn.com/problems/QC3q1f/

https://leetcode-cn.com/problems/binary-gap/

https://leetcode-cn.com/problems/design-add-and-search-words-data-structure/

https://leetcode-cn.com/problems/words-frequency-lcci/

https://leetcode-cn.com/problems/g5c51o/

https://leetcode-cn.com/problems/top-k-frequent-elements/

https://leetcode-cn.com/problems/sort-array-by-increasing-frequency/

https://leetcode-cn.com/problems/sort-characters-by-frequency/

https://leetcode-cn.com/problems/kth-largest-element-in-a-stream/

https://leetcode-cn.com/problems/jBjn9C/

https://leetcode-cn.com/problems/random-pick-index

https://leetcode-cn.com/problems/xu-lie-hua-er-cha-shu-lcof

https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree

https://leetcode-cn.com/problems/cousins-in-binary-tree/

https://leetcode-cn.com/problems/number-of-recent-calls/

https://leetcode-cn.com/problems/H8086Q/

https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof/

https://leetcode-cn.com/problems/ping-heng-er-cha-shu-lcof/

https://leetcode-cn.com/problems/peeking-iterator

https://leetcode-cn.com/problems/clone-graph

https://leetcode-cn.com/problems/clone-n-ary-tree/

https://leetcode-cn.com/problems/h54YBf/

https://leetcode-cn.com/problems/serialize-and-deserialize-bst/

https://leetcode-cn.com/problems/encode-n-ary-tree-to-binary-tree/

https://leetcode-cn.com/problems/serialize-and-deserialize-n-ary-tree/

https://leetcode-cn.com/problems/remove-element

https://leetcode-cn.com/problems/shan-chu-lian-biao-de-jie-dian-lcof

https://leetcode-cn.com/problems/remove-linked-list-elements

https://leetcode-cn.com/problems/pacific-atlantic-water-flow/

https://leetcode-cn.com/problems/fu-za-lian-biao-de-fu-zhi-lcof/

https://leetcode-cn.com/problems/copy-list-with-random-pointer/

https://leetcode-cn.com/problems/search-insert-position/

https://leetcode-cn.com/problems/boats-to-save-people/

https://leetcode-cn.com/problems/top-k-frequent-words/

https://leetcode-cn.com/problems/kth-largest-element-in-an-array/

https://leetcode-cn.com/problems/contains-duplicate/

https://leetcode-cn.com/problems/design-hashset/

https://leetcode-cn.com/problems/next-greater-element-i/

https://leetcode-cn.com/problems/find-peak-element/

https://leetcode-cn.com/problems/N6YdxV/

https://leetcode-cn.com/problems/search-a-2d-matrix/

https://leetcode-cn.com/problems/minimum-size-subarray-sum/

https://leetcode-cn.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/

https://leetcode-cn.com/problems/majority-element/

https://leetcode-cn.com/problems/permutations/

https://leetcode-cn.com/problems/permutations-ii/

https://leetcode-cn.com/problems/valid-sudoku/

https://leetcode-cn.com/problems/n-queens/

https://leetcode-cn.com/problems/eight-queens-lcci/

https://leetcode-cn.com/problems/sudoku-solver/

https://leetcode.cn/problems/generate-parentheses

https://leetcode-cn.com/problems/all-elements-in-two-binary-search-trees/

https://leetcode.cn/problems/combinations/

https://leetcode.cn/problems/subsets-ii/

https://leetcode.cn/problems/TVdhkn/

https://leetcode-cn.com/problems/subsets/

https://leetcode.cn/problems/number-of-1-bits/

https://leetcode.cn/problems/er-jin-zhi-zhong-1de-ge-shu-lcof/

https://leetcode-cn.com/problems/3sum/

https://leetcode-cn.com/problems/range-sum-of-bst/

https://leetcode-cn.com/problems/design-circular-queue/

https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/

https://leetcode-cn.com/problems/find-the-duplicate-number/

https://leetcode-cn.com/problems/design-hashmap

https://leetcode-cn.com/problems/perfect-squares/

https://leetcode-cn.com/problems/unique-paths/

https://leetcode-cn.com/problems/design-linked-list/

https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/

安装教程

  1. 安装deno

https://deno.land/#installation

  1. 安装 udd

https://deno.land/x/udd#installation

使用说明

  1. 测试
deno task test

2.升级依赖

deno task udd

3.格式化

deno task fmt

4.lint

deno task lint

5.type check

deno task check

5.导入模块

指定版本号

import {} from "https://gitee.com/masx200/leetcode-test/raw/4.1.1/mod.ts";
import {} from "https://raw.githubusercontent.com/masx200/leetcode-test/4.1.1/mod.ts";
import {} from "https://cdn.jsdelivr.net/gh/masx200/leetcode-test@4.1.1/mod.ts";
import {} from "https://deno.land/x/masx200_leetcode_test@4.1.1/mod.ts";

6.使用举例

import { climbing_stairs_bigint } from "https://deno.land/x/masx200_leetcode_test@4.1.1/mod.ts";
import climbing_stairs from "https://deno.land/x/masx200_leetcode_test@4.1.1/climbing-stairs/index.ts";

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request