René's URL Explorer Experiment


Title: GitHub - doocs/leetcode: 🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

Open Graph Title: GitHub - doocs/leetcode: 🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

X Title: GitHub - doocs/leetcode: 🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解

Description: 🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解 - doocs/leetcode

Open Graph Description: 🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解 - doocs/leetcode

X Description: 🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解 - doocs/leetcode

Opengraph URL: https://github.com/doocs/leetcode

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:e0a37348-0013-0dcc-9c56-1c645738f1eb
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idC8B8:121520:DF067D:126AEC6:696B8D4C
html-safe-nonce1ee1c68e68642e2d9e7a091e9ac8a21326375f716f2c61e3b99cac6639267f92
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEI4OjEyMTUyMDpERjA2N0Q6MTI2QUVDNjo2OTZCOEQ0QyIsInZpc2l0b3JfaWQiOiIyMjcwMjM5MjQ4MjIxOTY1NjQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc86bf173d631cf169e4522584d7cb83388f24ff7c34967a6e6494966f7f2fb80
hovercard-subject-tagrepository:149001365
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/doocs/leetcode
twitter:imagehttps://repository-images.githubusercontent.com/149001365/edbec400-5dfe-11ea-9642-9206a3606bca
twitter:cardsummary_large_image
og:imagehttps://repository-images.githubusercontent.com/149001365/edbec400-5dfe-11ea-9642-9206a3606bca
og:image:alt🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解 - doocs/leetcode
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/doocs/leetcode git https://github.com/doocs/leetcode.git
octolytics-dimension-user_id43716716
octolytics-dimension-user_logindoocs
octolytics-dimension-repository_id149001365
octolytics-dimension-repository_nwodoocs/leetcode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id149001365
octolytics-dimension-repository_network_root_nwodoocs/leetcode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/doocs/leetcode#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdoocs%2Fleetcode
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdoocs%2Fleetcode
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=doocs%2Fleetcode
Reloadhttps://patch-diff.githubusercontent.com/doocs/leetcode
Reloadhttps://patch-diff.githubusercontent.com/doocs/leetcode
Reloadhttps://patch-diff.githubusercontent.com/doocs/leetcode
doocs https://patch-diff.githubusercontent.com/doocs
leetcodehttps://patch-diff.githubusercontent.com/doocs/leetcode
Please reload this pagehttps://patch-diff.githubusercontent.com/doocs/leetcode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdoocs%2Fleetcode
Fork 9.2k https://patch-diff.githubusercontent.com/login?return_to=%2Fdoocs%2Fleetcode
Star 35.5k https://patch-diff.githubusercontent.com/login?return_to=%2Fdoocs%2Fleetcode
leetcode.doocs.orghttps://leetcode.doocs.org
CC-BY-SA-4.0 license https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/LICENSE
35.5k stars https://patch-diff.githubusercontent.com/doocs/leetcode/stargazers
9.2k forks https://patch-diff.githubusercontent.com/doocs/leetcode/forks
Branches https://patch-diff.githubusercontent.com/doocs/leetcode/branches
Tags https://patch-diff.githubusercontent.com/doocs/leetcode/tags
Activity https://patch-diff.githubusercontent.com/doocs/leetcode/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fdoocs%2Fleetcode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdoocs%2Fleetcode
Code https://patch-diff.githubusercontent.com/doocs/leetcode
Issues 0 https://patch-diff.githubusercontent.com/doocs/leetcode/issues
Pull requests 0 https://patch-diff.githubusercontent.com/doocs/leetcode/pulls
Discussions https://patch-diff.githubusercontent.com/doocs/leetcode/discussions
Actions https://patch-diff.githubusercontent.com/doocs/leetcode/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/doocs/leetcode/security
Please reload this pagehttps://patch-diff.githubusercontent.com/doocs/leetcode
Insights https://patch-diff.githubusercontent.com/doocs/leetcode/pulse
Code https://patch-diff.githubusercontent.com/doocs/leetcode
Issues https://patch-diff.githubusercontent.com/doocs/leetcode/issues
Pull requests https://patch-diff.githubusercontent.com/doocs/leetcode/pulls
Discussions https://patch-diff.githubusercontent.com/doocs/leetcode/discussions
Actions https://patch-diff.githubusercontent.com/doocs/leetcode/actions
Security https://patch-diff.githubusercontent.com/doocs/leetcode/security
Insights https://patch-diff.githubusercontent.com/doocs/leetcode/pulse
Brancheshttps://patch-diff.githubusercontent.com/doocs/leetcode/branches
Tagshttps://patch-diff.githubusercontent.com/doocs/leetcode/tags
https://patch-diff.githubusercontent.com/doocs/leetcode/branches
https://patch-diff.githubusercontent.com/doocs/leetcode/tags
11,394 Commitshttps://patch-diff.githubusercontent.com/doocs/leetcode/commits/main/
https://patch-diff.githubusercontent.com/doocs/leetcode/commits/main/
.githubhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/.github
.githubhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/.github
.huskyhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/.husky
.huskyhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/.husky
basichttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/basic
basichttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/basic
imageshttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/images
imageshttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/images
lccihttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcci
lccihttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcci
lcofhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcof
lcofhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcof
lcof2https://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcof2
lcof2https://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcof2
lcphttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcp
lcphttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcp
lcshttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcs
lcshttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/lcs
solutionhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/solution
solutionhttps://patch-diff.githubusercontent.com/doocs/leetcode/tree/main/solution
.clang-formathttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.clang-format
.clang-formathttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.clang-format
.editorconfighttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.editorconfig
.editorconfighttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.editorconfig
.gitignorehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.gitignore
.nojekyllhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.nojekyll
.nojekyllhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.nojekyll
.prettierignorehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.prettierignore
.prettierignorehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.prettierignore
.prettierrchttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.prettierrc
.prettierrchttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/.prettierrc
CODE_OF_CONDUCT.mdhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.mdhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/CODE_OF_CONDUCT.md
Dockerfilehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/Dockerfile
Dockerfilehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/Dockerfile
LICENSEhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/LICENSE
LICENSEhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/LICENSE
README.mdhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/README.md
README.mdhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/README.md
README_EN.mdhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/README_EN.md
README_EN.mdhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/README_EN.md
commitlint.config.jshttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/commitlint.config.js
commitlint.config.jshttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/commitlint.config.js
package.jsonhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/package.json
package.jsonhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/package.json
requirements.txthttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/requirements.txt
requirements.txthttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/requirements.txt
run_format.pyhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/run_format.py
run_format.pyhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/run_format.py
READMEhttps://patch-diff.githubusercontent.com/doocs/leetcode
Code of conducthttps://patch-diff.githubusercontent.com/doocs/leetcode
Contributinghttps://patch-diff.githubusercontent.com/doocs/leetcode
CC-BY-SA-4.0 licensehttps://patch-diff.githubusercontent.com/doocs/leetcode
https://github.com/doocs/leetcode
https://doocs.org
https://github.com/doocs/leetcode
https://github.com/doocs/leetcode/blob/main/LICENSE
https://github.com/doocs/leetcode/stargazers
https://github.com/doocs/leetcode/network/members
https://opencollective.com/doocs-leetcode
https://patch-diff.githubusercontent.com/doocs/leetcode#介绍
本项目https://github.com/doocs/leetcode
English Versionhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/README_EN.md
https://patch-diff.githubusercontent.com/doocs/leetcode#站点
https://leetcode.doocs.orghttps://leetcode.doocs.org
https://patch-diff.githubusercontent.com/doocs/leetcode#算法全解
LeetCodehttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/README.md
往期竞赛合集https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/CONTEST_README.md
剑指 Offer(第 2 版)https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/lcof/README.md
剑指 Offer(专项突击版)https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/lcof2/README.md
程序员面试金典(第 6 版)https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/lcci/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#专项突破
JavaScript 专项练习https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/JAVASCRIPT_README.md
数据库专项练习https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/DATABASE_README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#算法提升专题
https://patch-diff.githubusercontent.com/doocs/leetcode#1-基础算法
在排序数组中查找元素的第一个和最后一个位置https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0000-0099/0034.Find%20First%20and%20Last%20Position%20of%20Element%20in%20Sorted%20Array/README.md
准时到达的列车最小时速https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1800-1899/1870.Minimum%20Speed%20to%20Arrive%20on%20Time/README.md
可移除字符的最大数目https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1800-1899/1898.Maximum%20Number%20of%20Removable%20Characters/README.md
排序数组https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0912.Sort%20an%20Array/README.md
字符串相加https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0415.Add%20Strings/README.md
字符串相乘https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0000-0099/0043.Multiply%20Strings/README.md
区域和检索 - 数组不可变https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0303.Range%20Sum%20Query%20-%20Immutable/README.md
二维区域和检索 - 矩阵不可变https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0304.Range%20Sum%20Query%202D%20-%20Immutable/README.md
区间加法https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0370.Range%20Addition/README.md
用邮票贴满网格图https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2100-2199/2132.Stamping%20the%20Grid/README.md
无重复字符的最长子串https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0000-0099/0003.Longest%20Substring%20Without%20Repeating%20Characters/README.md
乘积小于 K 的子数组https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0713.Subarray%20Product%20Less%20Than%20K/README.md
位 1 的个数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0100-0199/0191.Number%20of%201%20Bits/README.md
合并区间https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0000-0099/0056.Merge%20Intervals/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#2-数据结构
设计链表https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0707.Design%20Linked%20List/README.md
下一个更大元素 Ihttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0496.Next%20Greater%20Element%20I/README.md
每日温度https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0739.Daily%20Temperatures/README.md
子数组的最小值之和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0907.Sum%20of%20Subarray%20Minimums/README.md
最大宽度坡https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0962.Maximum%20Width%20Ramp/README.md
最多能完成排序的块 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0768.Max%20Chunks%20To%20Make%20Sorted%20II/README.md
子数组范围和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2100-2199/2104.Sum%20of%20Subarray%20Ranges/README.md
子数组最小乘积的最大值https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1800-1899/1856.Maximum%20Subarray%20Min-Product/README.md
滑动窗口最大值https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0200-0299/0239.Sliding%20Window%20Maximum/README.md
满足不等式的最大值https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1400-1499/1499.Max%20Value%20of%20Equation/README.md
和至少为 K 的最短子数组https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0800-0899/0862.Shortest%20Subarray%20with%20Sum%20at%20Least%20K/README.md
带限制的子序列和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1400-1499/1425.Constrained%20Subsequence%20Sum/README.md
单词规律 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0200-0299/0291.Word%20Pattern%20II/README.md
最短回文串https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0200-0299/0214.Shortest%20Palindrome/README.md
回文对https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0336.Palindrome%20Pairs/README.md
最长重复子串https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1000-1099/1044.Longest%20Duplicate%20Substring/README.md
不同的循环子字符串https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1300-1399/1316.Distinct%20Echo%20Substrings/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#3-搜索
图像渲染https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0733.Flood%20Fill/README.md
岛屿数量https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0200-0299/0200.Number%20of%20Islands/README.md
01 矩阵https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0500-0599/0542.01%20Matrix/README.md
地图中的最高点https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1700-1799/1765.Map%20of%20Highest%20Peak/README.md
进击的骑士https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1100-1199/1197.Minimum%20Knight%20Moves/README.md
二进制矩阵中的最短路径https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1000-1099/1091.Shortest%20Path%20in%20Binary%20Matrix/README.md
迷宫中离入口最近的出口https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1900-1999/1926.Nearest%20Exit%20from%20Entrance%20in%20Maze/README.md
网格中的最短路径https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1200-1299/1293.Shortest%20Path%20in%20a%20Grid%20with%20Obstacles%20Elimination/README.md
打开转盘锁https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0752.Open%20the%20Lock/README.md
单词接龙https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0100-0199/0127.Word%20Ladder/README.md
转化数字的最小运算数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2000-2099/2059.Minimum%20Operations%20to%20Convert%20Number/README.md
滑动谜题https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0773.Sliding%20Puzzle/README.md
访问所有节点的最短路径https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0800-0899/0847.Shortest%20Path%20Visiting%20All%20Nodes/README.md
为高尔夫比赛砍树https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0600-0699/0675.Cut%20Off%20Trees%20for%20Golf%20Event/README.md
使网格图至少有一条有效路径的最小代价https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1300-1399/1368.Minimum%20Cost%20to%20Make%20at%20Least%20One%20Valid%20Path%20in%20a%20Grid/README.md
到达角落需要移除障碍物的最小数目https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2200-2299/2290.Minimum%20Obstacle%20Removal%20to%20Reach%20Corner/README.md
迷宫https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0490.The%20Maze/README.md
单词搜索https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0000-0099/0079.Word%20Search/README.md
黄金矿工https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1200-1299/1219.Path%20with%20Maximum%20Gold/README.md
火柴拼正方形https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0473.Matchsticks%20to%20Square/README.md
划分为 k 个相等的子集https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0600-0699/0698.Partition%20to%20K%20Equal%20Sum%20Subsets/README.md
完成所有工作的最短时间https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1700-1799/1723.Find%20Minimum%20Time%20to%20Finish%20All%20Jobs/README.md
公平分发饼干https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2300-2399/2305.Fair%20Distribution%20of%20Cookies/README.md
矩阵中的最长递增路径https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0329.Longest%20Increasing%20Path%20in%20a%20Matrix/README.md
网格图中递增路径的数目https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2300-2399/2328.Number%20of%20Increasing%20Paths%20in%20a%20Grid/README.md
翻转游戏 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0200-0299/0294.Flip%20Game%20II/README.md
统计所有可行路径https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1500-1599/1575.Count%20All%20Possible%20Routes/README.md
切披萨的方案数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1400-1499/1444.Number%20of%20Ways%20of%20Cutting%20a%20Pizza/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#4-动态规划dp
杨辉三角https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0100-0199/0118.Pascal's%20Triangle/README.md
最小路径和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0000-0099/0064.Minimum%20Path%20Sum/README.md
摘樱桃https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0741.Cherry%20Pickup/README.md
摘樱桃 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1400-1499/1463.Cherry%20Pickup%20II/README.md
最长递增子序列https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0300.Longest%20Increasing%20Subsequence/README.md
无重叠区间https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0435.Non-overlapping%20Intervals/README.md
删列造序 IIIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0960.Delete%20Columns%20to%20Make%20Sorted%20III/README.md
俄罗斯套娃信封问题https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0354.Russian%20Doll%20Envelopes/README.md
堆叠长方体的最大高度https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1600-1699/1691.Maximum%20Height%20by%20Stacking%20Cuboids/README.md
无矛盾的最佳球队https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1600-1699/1626.Best%20Team%20With%20No%20Conflicts/README.md
最长公共子序列https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1100-1199/1143.Longest%20Common%20Subsequence/README.md
两个字符串的最小 ASCII 删除和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0712.Minimum%20ASCII%20Delete%20Sum%20for%20Two%20Strings/README.md
两个字符串的删除操作https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0500-0599/0583.Delete%20Operation%20for%20Two%20Strings/README.md
目标和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0494.Target%20Sum/README.md
分割等和子集https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0416.Partition%20Equal%20Subset%20Sum/README.md
最后一块石头的重量 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1000-1099/1049.Last%20Stone%20Weight%20II/README.md
零钱兑换https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0322.Coin%20Change/README.md
组合总和 Ⅳhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0377.Combination%20Sum%20IV/README.md
从栈中取出 K 个硬币的最大面值和https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2200-2299/2218.Maximum%20Value%20of%20K%20Coins%20From%20Piles/README.md
数字 1 的个数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0200-0299/0233.Number%20of%20Digit%20One/README.md
统计各位数字都不同的数字个数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0357.Count%20Numbers%20with%20Unique%20Digits/README.md
不含连续 1 的非负整数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0600-0699/0600.Non-negative%20Integers%20without%20Consecutive%20Ones/README.md
旋转数字https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0788.Rotated%20Digits/README.md
最大为 N 的数字组合https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0902.Numbers%20At%20Most%20N%20Given%20Digit%20Set/README.md
统计特殊整数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2300-2399/2376.Count%20Special%20Integers/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#5-高级数据结构
二维网格图中探测环https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1500-1599/1559.Detect%20Cycles%20in%202D%20Grid/README.md
除法求值https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0399.Evaluate%20Division/README.md
由斜杠划分区域https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0959.Regions%20Cut%20By%20Slashes/README.md
水位上升的泳池中游泳https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0778.Swim%20in%20Rising%20Water/README.md
交换字符串中的元素https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1200-1299/1202.Smallest%20String%20With%20Swaps/README.md
打砖块https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0800-0899/0803.Bricks%20Falling%20When%20Hit/README.md
尽量减少恶意软件的传播 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0900-0999/0928.Minimize%20Malware%20Spread%20II/README.md
检查边长度限制的路径是否存在https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1600-1699/1697.Checking%20Existence%20of%20Edge%20Length%20Limited%20Paths/README.md
保证图可完全遍历https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1500-1599/1579.Remove%20Max%20Number%20of%20Edges%20to%20Keep%20Graph%20Fully%20Traversable/README.md
区域和检索 - 数组可修改https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0307.Range%20Sum%20Query%20-%20Mutable/README.md
通过指令创建有序数组https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1600-1699/1649.Create%20Sorted%20Array%20through%20Instructions/README.md
统计数组中好三元组数目https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2100-2199/2179.Count%20Good%20Triplets%20in%20an%20Array/README.md
最多 K 次交换相邻数位后得到的最小整数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1500-1599/1505.Minimum%20Possible%20Integer%20After%20at%20Most%20K%20Adjacent%20Swaps%20On%20Digits/README.md
二维区域和检索 - 可变https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0308.Range%20Sum%20Query%202D%20-%20Mutable/README.md
计算右侧小于当前元素的个数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0315.Count%20of%20Smaller%20Numbers%20After%20Self/README.md
区间和的个数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0300-0399/0327.Count%20of%20Range%20Sum/README.md
翻转对https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0400-0499/0493.Reverse%20Pairs/README.md
最长递增子序列的个数https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0600-0699/0673.Number%20of%20Longest%20Increasing%20Subsequence/README.md
奇妙序列https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1600-1699/1622.Fancy%20Sequence/README.md
Range 模块https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0715.Range%20Module/README.md
我的日程安排表 IIIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0732.My%20Calendar%20III/README.md
每天绘制的新区域数量https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2100-2199/2158.Amount%20of%20New%20Area%20Painted%20Each%20Day/README.md
由单个字符重复的最长子字符串https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2200-2299/2213.Longest%20Substring%20of%20One%20Repeating%20Character/README.md
矩形面积 IIhttps://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0800-0899/0850.Rectangle%20Area%20II/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#6-图论
网络延迟时间https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0743.Network%20Delay%20Time/README.md
得到要求路径的最小带权子图https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/2200-2299/2203.Minimum%20Weighted%20Subgraph%20With%20the%20Required%20Paths/README.md
连接所有点的最小费用https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1500-1599/1584.Min%20Cost%20to%20Connect%20All%20Points/README.md
最低成本联通所有城市https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1100-1199/1135.Connecting%20Cities%20With%20Minimum%20Cost/README.md
水资源分配优化https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1100-1199/1168.Optimize%20Water%20Distribution%20in%20a%20Village/README.md
找到最小生成树里的关键边和伪关键边https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/1400-1499/1489.Find%20Critical%20and%20Pseudo-Critical%20Edges%20in%20Minimum%20Spanning%20Tree/README.md
判断二分图https://patch-diff.githubusercontent.com/doocs/leetcode/blob/main/solution/0700-0799/0785.Is%20Graph%20Bipartite/README.md
https://patch-diff.githubusercontent.com/doocs/leetcode#加入我们
@kfstormhttps://github.com/kfstorm
C# 题解https://github.com/doocs/leetcode/pull/245
PRhttps://github.com/doocs/leetcode/pulls
https://help.github.com/cnhttps://help.github.com/cn
https://camo.githubusercontent.com/11ce4e6c48b0f99c3930e977e1c7f5879fcc492a0c6a0077cea13e2d5ea71766/68747470733a2f2f63646e2d646f6f63732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f67682f646f6f63732f6c656574636f64652534306d61696e2f696d616765732f70722e737667
https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=149001365&machine=basicLinux32gb&location=SoutheastAsia
https://patch-diff.githubusercontent.com/doocs/leetcode#stars-趋势
https://github.com/doocs/leetcode/stargazers
https://next.ossinsight.io/widgets/official/analyze-repo-stars-map?repo_id=149001365&activity=stars
https://patch-diff.githubusercontent.com/doocs/leetcode#贡献者
https://github.com/doocs/leetcode/graphs/contributors
https://patch-diff.githubusercontent.com/doocs/leetcode#版权
GitHub 开源社区 Doocshttps://github.com/doocs
https://patch-diff.githubusercontent.com/doocs/leetcode#联系我们--支持项目
https://camo.githubusercontent.com/43b6dd75ba7c1d4926d29af0eb47c0ae65b4eeb418115850c00ea6a025a3e38c/68747470733a2f2f63646e2d646f6f63732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f67682f646f6f63732f696d616765732f7172636f64652d666f722d79616e676c626d652e706e67
https://camo.githubusercontent.com/649edbdc5e037090ff4bd4e03516aeba6cf25ada60dd84dba41d670d36b08676/68747470733a2f2f63646e2d646f6f63732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f67682f646f6f63732f6c656574636f64652534306d61696e2f696d616765732f737570706f7274312e6a7067
https://patch-diff.githubusercontent.com/doocs/leetcode#许可证
知识共享 版权归属-相同方式共享 4.0 国际 公共许可证http://creativecommons.org/licenses/by-sa/4.0/
leetcode.doocs.orghttps://leetcode.doocs.org
javascript https://patch-diff.githubusercontent.com/topics/javascript
java https://patch-diff.githubusercontent.com/topics/java
golang https://patch-diff.githubusercontent.com/topics/golang
csharp https://patch-diff.githubusercontent.com/topics/csharp
algorithms https://patch-diff.githubusercontent.com/topics/algorithms
leetcode https://patch-diff.githubusercontent.com/topics/leetcode
cpp https://patch-diff.githubusercontent.com/topics/cpp
python3 https://patch-diff.githubusercontent.com/topics/python3
Readme https://patch-diff.githubusercontent.com/doocs/leetcode#readme-ov-file
CC-BY-SA-4.0 license https://patch-diff.githubusercontent.com/doocs/leetcode#CC-BY-SA-4.0-1-ov-file
Code of conduct https://patch-diff.githubusercontent.com/doocs/leetcode#coc-ov-file
Contributing https://patch-diff.githubusercontent.com/doocs/leetcode#contributing-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/doocs/leetcode
Activityhttps://patch-diff.githubusercontent.com/doocs/leetcode/activity
Custom propertieshttps://patch-diff.githubusercontent.com/doocs/leetcode/custom-properties
35.5k starshttps://patch-diff.githubusercontent.com/doocs/leetcode/stargazers
332 watchinghttps://patch-diff.githubusercontent.com/doocs/leetcode/watchers
9.2k forkshttps://patch-diff.githubusercontent.com/doocs/leetcode/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fdoocs%2Fleetcode&report=doocs+%28user%29
Releases 21https://patch-diff.githubusercontent.com/doocs/leetcode/releases
v0.3.0 Latest Feb 20, 2025 https://patch-diff.githubusercontent.com/doocs/leetcode/releases/tag/v0.3.0
+ 20 releaseshttps://patch-diff.githubusercontent.com/doocs/leetcode/releases
Please reload this pagehttps://patch-diff.githubusercontent.com/doocs/leetcode
opencollective.com/doocs-leetcodehttps://opencollective.com/doocs-leetcode
Packages 0https://patch-diff.githubusercontent.com/orgs/doocs/packages?repo_name=leetcode
Please reload this pagehttps://patch-diff.githubusercontent.com/doocs/leetcode
Contributors 184https://patch-diff.githubusercontent.com/doocs/leetcode/graphs/contributors
https://github.com/yanglbme
https://github.com/YangFong
https://github.com/zhaocchen
https://github.com/klever34
https://github.com/apps/github-actions
https://github.com/thinkasany
https://github.com/maolonglong
https://github.com/Jerring
https://github.com/rain84
https://github.com/idoocs
https://github.com/bluesword12350
https://github.com/Qiu-IT
https://github.com/xzhseh
https://github.com/huaxu1024
+ 170 contributorshttps://patch-diff.githubusercontent.com/doocs/leetcode/graphs/contributors
Java 21.0% https://patch-diff.githubusercontent.com/doocs/leetcode/search?l=java
C++ 19.2% https://patch-diff.githubusercontent.com/doocs/leetcode/search?l=c%2B%2B
Python 16.3% https://patch-diff.githubusercontent.com/doocs/leetcode/search?l=python
TypeScript 15.9% https://patch-diff.githubusercontent.com/doocs/leetcode/search?l=typescript
Go 12.6% https://patch-diff.githubusercontent.com/doocs/leetcode/search?l=go
Rust 6.3% https://patch-diff.githubusercontent.com/doocs/leetcode/search?l=rust
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.