Skip to main content
Deno 2 is finally here 🎉️
Learn more

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/

安装教程

  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.导入模块

指定版本号

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