{"id":13339543,"url":"https://github.com/RuixeWolf/leetcode-problems","last_synced_at":"2025-03-11T14:31:42.907Z","repository":{"id":203862848,"uuid":"564241377","full_name":"RuixeWolf/leetcode-problems","owner":"RuixeWolf","description":"Ruixe 的 LeetCode 算法题集，使用 TypeScript 语言，集成 Jest 单元测试，可快速新建题解源码与测试文件","archived":false,"fork":false,"pushed_at":"2023-02-13T07:59:06.000Z","size":202,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-30T20:58:24.559Z","etag":null,"topics":["leetcode","leetcode-problems-solutions","leetcode-typescript","typescript","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RuixeWolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-10T09:50:57.000Z","updated_at":"2023-03-13T12:14:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"7725452e-c1bd-410b-a352-7052aca38e83","html_url":"https://github.com/RuixeWolf/leetcode-problems","commit_stats":null,"previous_names":["ruixewolf/leetcode-problems"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuixeWolf%2Fleetcode-problems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuixeWolf%2Fleetcode-problems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuixeWolf%2Fleetcode-problems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuixeWolf%2Fleetcode-problems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RuixeWolf","download_url":"https://codeload.github.com/RuixeWolf/leetcode-problems/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221232946,"owners_count":16781662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leetcode","leetcode-problems-solutions","leetcode-typescript","typescript","unit-testing"],"created_at":"2024-07-29T19:20:21.687Z","updated_at":"2024-10-23T20:30:30.247Z","avatar_url":"https://github.com/RuixeWolf.png","language":"TypeScript","readme":"# LeetCode 算法题集\n\nRuixe 的 LeetCode 算法题集，使用 TypeScript 语言，集成 Jest 单元测试，可快速新建题解源码与测试文件\n\n## 新建题目\n\n创建新的题目源码、单元测试与测试用例文件\n\n```shell\n# NPM\nnpm run create-files\n\n# Yarn\nyarn create-files\n```\n\n## 运行单元测试\n\n### 安装依赖\n\n```shell\n# NPM\nnpm install\n\n# Yarn\nyarn\n```\n\n### 测试所有题解\n\n```shell\n# NPM\nnpm run test\n\n# Yarn\nyarn test\n```\n\n### 测试指定题解\n\n```shell\n# NPM\nnpx jest [题目编号或名称]\n\n# Yarn\nyarn jest [题目编号或名称]\n```\n\n注：题解源码与单元测试文件的命名需要包含题目编号，如 `[题目编号]_[英文小驼峰题目名称].test.ts`\n\n### 运行单个题解\n\n```shell\nts-node --esm ./src/[题目文件名]\n```\n\n## 目录结构\n\n```\n├── creator - 题目文件创建器\n├── src - 题目与题解源码\n└── tests - 单元测试文件\n    └── testCases - 测试用例\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRuixeWolf%2Fleetcode-problems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRuixeWolf%2Fleetcode-problems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRuixeWolf%2Fleetcode-problems/lists"}