René's URL Explorer Experiment


Title: GitHub - mcxue/leetcode

Open Graph Title: GitHub - mcxue/leetcode

X Title: GitHub - mcxue/leetcode

Description: Contribute to mcxue/leetcode development by creating an account on GitHub.

Open Graph Description: Contribute to mcxue/leetcode development by creating an account on GitHub.

X Description: Contribute to mcxue/leetcode development by creating an account on GitHub.

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:ec7c241e-6eef-2cf5-583a-c2ac05fa4496
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id8FC4:153CD4:CAB7CF:116A4CC:698F029E
html-safe-nonce720684ffd40a7b0a6b4e717a4e2ad57efa79d45b5faa88e366ede2d025dcff63
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkM0OjE1M0NENDpDQUI3Q0Y6MTE2QTRDQzo2OThGMDI5RSIsInZpc2l0b3JfaWQiOiI4MjQ3ODg3NjQ2MDQwMTk1NzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac27801e8110e6456ec40bc49e70e220d9c8cfb1dc7df79e9c680eae360cc4921d
hovercard-subject-tagrepository:608647414
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/mcxue/leetcode
twitter:imagehttps://opengraph.githubassets.com/875ddfebe2ed9293fbf61aa6c49f6d394ada6b5c2abaad9111b0b648a00a8c7b/mcxue/leetcode
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/875ddfebe2ed9293fbf61aa6c49f6d394ada6b5c2abaad9111b0b648a00a8c7b/mcxue/leetcode
og:image:altContribute to mcxue/leetcode development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff
turbo-cache-controlno-preview
go-importgithub.com/mcxue/leetcode git https://github.com/mcxue/leetcode.git
octolytics-dimension-user_id59995037
octolytics-dimension-user_loginmcxue
octolytics-dimension-repository_id608647414
octolytics-dimension-repository_nwomcxue/leetcode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id608647414
octolytics-dimension-repository_network_root_nwomcxue/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
release66d26b1a7f81bd3ffe8d0f16abab43f6e64fd21a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/mcxue/leetcode#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmcxue%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%2Fmcxue%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=mcxue%2Fleetcode
Reloadhttps://patch-diff.githubusercontent.com/mcxue/leetcode
Reloadhttps://patch-diff.githubusercontent.com/mcxue/leetcode
Reloadhttps://patch-diff.githubusercontent.com/mcxue/leetcode
mcxue https://patch-diff.githubusercontent.com/mcxue
leetcodehttps://patch-diff.githubusercontent.com/mcxue/leetcode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmcxue%2Fleetcode
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fmcxue%2Fleetcode
Star 1 https://patch-diff.githubusercontent.com/login?return_to=%2Fmcxue%2Fleetcode
1 star https://patch-diff.githubusercontent.com/mcxue/leetcode/stargazers
0 forks https://patch-diff.githubusercontent.com/mcxue/leetcode/forks
Branches https://patch-diff.githubusercontent.com/mcxue/leetcode/branches
Tags https://patch-diff.githubusercontent.com/mcxue/leetcode/tags
Activity https://patch-diff.githubusercontent.com/mcxue/leetcode/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fmcxue%2Fleetcode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmcxue%2Fleetcode
Code https://patch-diff.githubusercontent.com/mcxue/leetcode
Issues 0 https://patch-diff.githubusercontent.com/mcxue/leetcode/issues
Pull requests 0 https://patch-diff.githubusercontent.com/mcxue/leetcode/pulls
Actions https://patch-diff.githubusercontent.com/mcxue/leetcode/actions
Projects 0 https://patch-diff.githubusercontent.com/mcxue/leetcode/projects
Security 0 https://patch-diff.githubusercontent.com/mcxue/leetcode/security
Insights https://patch-diff.githubusercontent.com/mcxue/leetcode/pulse
Code https://patch-diff.githubusercontent.com/mcxue/leetcode
Issues https://patch-diff.githubusercontent.com/mcxue/leetcode/issues
Pull requests https://patch-diff.githubusercontent.com/mcxue/leetcode/pulls
Actions https://patch-diff.githubusercontent.com/mcxue/leetcode/actions
Projects https://patch-diff.githubusercontent.com/mcxue/leetcode/projects
Security https://patch-diff.githubusercontent.com/mcxue/leetcode/security
Insights https://patch-diff.githubusercontent.com/mcxue/leetcode/pulse
Brancheshttps://patch-diff.githubusercontent.com/mcxue/leetcode/branches
Tagshttps://patch-diff.githubusercontent.com/mcxue/leetcode/tags
https://patch-diff.githubusercontent.com/mcxue/leetcode/branches
https://patch-diff.githubusercontent.com/mcxue/leetcode/tags
20 Commitshttps://patch-diff.githubusercontent.com/mcxue/leetcode/commits/master/
https://patch-diff.githubusercontent.com/mcxue/leetcode/commits/master/
algorithmshttps://patch-diff.githubusercontent.com/mcxue/leetcode/tree/master/algorithms
algorithmshttps://patch-diff.githubusercontent.com/mcxue/leetcode/tree/master/algorithms
.gitignorehttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/.gitignore
README.mdhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/README.md
go.modhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/go.mod
go.modhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/go.mod
package.jsonhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/package.json
package.jsonhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/package.json
yarn.lockhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/yarn.lock
yarn.lockhttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/yarn.lock
READMEhttps://patch-diff.githubusercontent.com/mcxue/leetcode
https://patch-diff.githubusercontent.com/mcxue/leetcode#leetcode-algorithm
两数之和https://leetcode.cn/problems/two-sum/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/1.%E4%B8%A4%E6%95%B0%E4%B9%8B%E5%92%8C.ts
Gohttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/golang/1.%E4%B8%A4%E6%95%B0%E4%B9%8B%E5%92%8C.go
两数相加https://leetcode.cn/problems/add-two-numbers/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/2.%E4%B8%A4%E6%95%B0%E7%9B%B8%E5%8A%A0.ts
Gohttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/golang/2.%E4%B8%A4%E6%95%B0%E7%9B%B8%E5%8A%A0.go
无重复字符的最长子串https://leetcode.cn/problems/longest-substring-without-repeating-characters/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/3.%E6%97%A0%E9%87%8D%E5%A4%8D%E5%AD%97%E7%AC%A6%E7%9A%84%E6%9C%80%E9%95%BF%E5%AD%90%E4%B8%B2.ts
Gohttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/golang/3.%E6%97%A0%E9%87%8D%E5%A4%8D%E5%AD%97%E7%AC%A6%E7%9A%84%E6%9C%80%E9%95%BF%E5%AD%90%E4%B8%B2.go
寻找两个正序数组的中位数https://leetcode.cn/problems/median-of-two-sorted-arrays/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/4.%E5%AF%BB%E6%89%BE%E4%B8%A4%E4%B8%AA%E6%AD%A3%E5%BA%8F%E6%95%B0%E7%BB%84%E7%9A%84%E4%B8%AD%E4%BD%8D%E6%95%B0.ts
最长回文子串https://leetcode.cn/problems/longest-palindromic-substring/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/5.%E6%9C%80%E9%95%BF%E5%9B%9E%E6%96%87%E5%AD%90%E4%B8%B2.ts
N 字形变换https://leetcode.cn/problems/zigzag-conversion/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/6.n-%E5%AD%97%E5%BD%A2%E5%8F%98%E6%8D%A2.ts
整数反转https://leetcode.cn/problems/reverse-integer/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/7.%E6%95%B4%E6%95%B0%E5%8F%8D%E8%BD%AC.ts
字符串转换整数 (atoi)https://leetcode.cn/problems/string-to-integer-atoi/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/8.%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BD%AC%E6%8D%A2%E6%95%B4%E6%95%B0-atoi.ts
回文数https://leetcode.cn/problems/palindrome-number/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/9.%E5%9B%9E%E6%96%87%E6%95%B0.ts
盛最多水的容器https://leetcode.cn/problems/container-with-most-water/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/11.%E7%9B%9B%E6%9C%80%E5%A4%9A%E6%B0%B4%E7%9A%84%E5%AE%B9%E5%99%A8.ts
最长公共前缀https://leetcode.cn/problems/longest-common-prefix/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/14.%E6%9C%80%E9%95%BF%E5%85%AC%E5%85%B1%E5%89%8D%E7%BC%80.ts
三数之和https://leetcode.cn/problems/3sum/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/15.%E4%B8%89%E6%95%B0%E4%B9%8B%E5%92%8C.ts
删除有序数组中的重复项https://leetcode.cn/problems/remove-duplicates-from-sorted-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/26.%E5%88%A0%E9%99%A4%E6%9C%89%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E9%87%8D%E5%A4%8D%E9%A1%B9.ts
移除元素https://leetcode.cn/problems/remove-element/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/27.%E7%A7%BB%E9%99%A4%E5%85%83%E7%B4%A0.ts
找出字符串中第一个匹配项的下标https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/28.%E6%89%BE%E5%87%BA%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%8C%B9%E9%85%8D%E9%A1%B9%E7%9A%84%E4%B8%8B%E6%A0%87.ts
搜索旋转排序数组https://leetcode.cn/problems/search-in-rotated-sorted-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/33.%E6%90%9C%E7%B4%A2%E6%97%8B%E8%BD%AC%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84.ts
搜索插入位置https://leetcode.cn/problems/search-insert-position/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/35.%E6%90%9C%E7%B4%A2%E6%8F%92%E5%85%A5%E4%BD%8D%E7%BD%AE.ts
有效的数独https://leetcode.cn/problems/valid-sudoku/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/36.%E6%9C%89%E6%95%88%E7%9A%84%E6%95%B0%E7%8B%AC.ts
外观数列https://leetcode.cn/problems/count-and-say/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/38.%E5%A4%96%E8%A7%82%E6%95%B0%E5%88%97.ts
全排列https://leetcode.cn/problems/permutations/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/46.%E5%85%A8%E6%8E%92%E5%88%97.ts
旋转图像https://leetcode.cn/problems/rotate-image/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/48.%E6%97%8B%E8%BD%AC%E5%9B%BE%E5%83%8F.ts
字母异位词分组https://leetcode.cn/problems/group-anagrams/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/49.%E5%AD%97%E6%AF%8D%E5%BC%82%E4%BD%8D%E8%AF%8D%E5%88%86%E7%BB%84.ts
合并区间https://leetcode.cn/problems/merge-intervals/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/56.%E5%90%88%E5%B9%B6%E5%8C%BA%E9%97%B4.ts
最后一个单词的长度https://leetcode.cn/problems/length-of-last-word/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/58.%E6%9C%80%E5%90%8E%E4%B8%80%E4%B8%AA%E5%8D%95%E8%AF%8D%E7%9A%84%E9%95%BF%E5%BA%A6.ts
加一https://leetcode.cn/problems/plus-one/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/66.%E5%8A%A0%E4%B8%80.ts
爬楼梯https://leetcode.cn/problems/climbing-stairs/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/70.%E7%88%AC%E6%A5%BC%E6%A2%AF.ts
矩阵置零https://leetcode.cn/problems/set-matrix-zeroes/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/73.%E7%9F%A9%E9%98%B5%E7%BD%AE%E9%9B%B6.ts
搜索二维矩阵https://leetcode.cn/problems/search-a-2d-matrix/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/74.%E6%90%9C%E7%B4%A2%E4%BA%8C%E7%BB%B4%E7%9F%A9%E9%98%B5.ts
颜色分类https://leetcode.cn/problems/sort-colors/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/75.%E9%A2%9C%E8%89%B2%E5%88%86%E7%B1%BB.ts
删除有序数组中的重复项 IIhttps://leetcode.cn/problems/remove-duplicates-from-sorted-array-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/80.%E5%88%A0%E9%99%A4%E6%9C%89%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E9%87%8D%E5%A4%8D%E9%A1%B9-ii.ts
合并两个有序数组https://leetcode.cn/problems/merge-sorted-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/88.%E5%90%88%E5%B9%B6%E4%B8%A4%E4%B8%AA%E6%9C%89%E5%BA%8F%E6%95%B0%E7%BB%84.ts
二叉树的中序遍历https://leetcode.cn/problems/binary-tree-inorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/94.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E4%B8%AD%E5%BA%8F%E9%81%8D%E5%8E%86.ts
对称二叉树https://leetcode.cn/problems/symmetric-tree/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/101.%E5%AF%B9%E7%A7%B0%E4%BA%8C%E5%8F%89%E6%A0%91.ts
二叉树的层序遍历https://leetcode.cn/problems/binary-tree-level-order-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/102.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E5%B1%82%E5%BA%8F%E9%81%8D%E5%8E%86.ts
二叉树的最大深度https://leetcode.cn/problems/maximum-depth-of-binary-tree/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/104.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%9C%80%E5%A4%A7%E6%B7%B1%E5%BA%A6.ts
从前序与中序遍历序列构造二叉树https://leetcode.cn/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/105.%E4%BB%8E%E5%89%8D%E5%BA%8F%E4%B8%8E%E4%B8%AD%E5%BA%8F%E9%81%8D%E5%8E%86%E5%BA%8F%E5%88%97%E6%9E%84%E9%80%A0%E4%BA%8C%E5%8F%89%E6%A0%91.ts
从中序与后序遍历序列构造二叉树https://leetcode.cn/problems/construct-binary-tree-from-inorder-and-postorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/106.%E4%BB%8E%E4%B8%AD%E5%BA%8F%E4%B8%8E%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86%E5%BA%8F%E5%88%97%E6%9E%84%E9%80%A0%E4%BA%8C%E5%8F%89%E6%A0%91.ts
路径总和https://leetcode.cn/problems/path-sum/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/112.%E8%B7%AF%E5%BE%84%E6%80%BB%E5%92%8C.ts
填充每个节点的下一个右侧节点指针https://leetcode.cn/problems/populating-next-right-pointers-in-each-node/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/116.%E5%A1%AB%E5%85%85%E6%AF%8F%E4%B8%AA%E8%8A%82%E7%82%B9%E7%9A%84%E4%B8%8B%E4%B8%80%E4%B8%AA%E5%8F%B3%E4%BE%A7%E8%8A%82%E7%82%B9%E6%8C%87%E9%92%88.ts
填充每个节点的下一个右侧节点指针 IIhttps://leetcode.cn/problems/populating-next-right-pointers-in-each-node-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/117.%E5%A1%AB%E5%85%85%E6%AF%8F%E4%B8%AA%E8%8A%82%E7%82%B9%E7%9A%84%E4%B8%8B%E4%B8%80%E4%B8%AA%E5%8F%B3%E4%BE%A7%E8%8A%82%E7%82%B9%E6%8C%87%E9%92%88-ii.ts
杨辉三角https://leetcode.cn/problems/pascals-triangle/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/118.%E6%9D%A8%E8%BE%89%E4%B8%89%E8%A7%92.ts
杨辉三角 IIhttps://leetcode.cn/problems/pascals-triangle-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/119.%E6%9D%A8%E8%BE%89%E4%B8%89%E8%A7%92-ii.ts
买卖股票的最佳时机 IIhttps://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/122.%E4%B9%B0%E5%8D%96%E8%82%A1%E7%A5%A8%E7%9A%84%E6%9C%80%E4%BD%B3%E6%97%B6%E6%9C%BA-ii.ts
验证回文串https://leetcode.cn/problems/valid-palindrome/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/125.%E9%AA%8C%E8%AF%81%E5%9B%9E%E6%96%87%E4%B8%B2.ts
被围绕的区域https://leetcode.cn/problems/surrounded-regions/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/130.%E8%A2%AB%E5%9B%B4%E7%BB%95%E7%9A%84%E5%8C%BA%E5%9F%9F.ts
只出现一次的数字https://leetcode.cn/problems/single-number/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/136.%E5%8F%AA%E5%87%BA%E7%8E%B0%E4%B8%80%E6%AC%A1%E7%9A%84%E6%95%B0%E5%AD%97.ts
单词拆分https://leetcode.cn/problems/word-break/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/139.%E5%8D%95%E8%AF%8D%E6%8B%86%E5%88%86.ts
二叉树的前序遍历https://leetcode.cn/problems/binary-tree-preorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/144.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E5%89%8D%E5%BA%8F%E9%81%8D%E5%8E%86.ts
二叉树的后序遍历https://leetcode.cn/problems/binary-tree-postorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/145.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86.ts
反转字符串中的单词https://leetcode.cn/problems/reverse-words-in-a-string/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/151.%E5%8F%8D%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%9A%84%E5%8D%95%E8%AF%8D.ts
寻找旋转排序数组中的最小值https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/153.%E5%AF%BB%E6%89%BE%E6%97%8B%E8%BD%AC%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E6%9C%80%E5%B0%8F%E5%80%BC.ts
最大间距https://leetcode.cn/problems/maximum-gap/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/164.%E6%9C%80%E5%A4%A7%E9%97%B4%E8%B7%9D.ts
两数之和 II - 输入有序数组https://leetcode.cn/problems/two-sum-ii-input-array-is-sorted/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/167.%E4%B8%A4%E6%95%B0%E4%B9%8B%E5%92%8C-ii-%E8%BE%93%E5%85%A5%E6%9C%89%E5%BA%8F%E6%95%B0%E7%BB%84.ts
最大数https://leetcode.cn/problems/largest-number/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/179.%E6%9C%80%E5%A4%A7%E6%95%B0.ts
轮转数组https://leetcode.cn/problems/rotate-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/189.%E8%BD%AE%E8%BD%AC%E6%95%B0%E7%BB%84.ts
反转链表https://leetcode.cn/problems/reverse-linked-list/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/206.%E5%8F%8D%E8%BD%AC%E9%93%BE%E8%A1%A8.ts
长度最小的子数组https://leetcode.cn/problems/minimum-size-subarray-sum/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/209.%E9%95%BF%E5%BA%A6%E6%9C%80%E5%B0%8F%E7%9A%84%E5%AD%90%E6%95%B0%E7%BB%84.ts
数组中的第 K 个最大元素https://leetcode.cn/problems/kth-largest-element-in-an-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/215.%E6%95%B0%E7%BB%84%E4%B8%AD%E7%9A%84%E7%AC%ACk%E4%B8%AA%E6%9C%80%E5%A4%A7%E5%85%83%E7%B4%A0.ts
存在重复元素https://leetcode.cn/problems/contains-duplicate/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/217.%E5%AD%98%E5%9C%A8%E9%87%8D%E5%A4%8D%E5%85%83%E7%B4%A0.ts
二叉树的最近公共祖先https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/236.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88.ts
有效的字母异位词https://leetcode.cn/problems/valid-anagram/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/242.%E6%9C%89%E6%95%88%E7%9A%84%E5%AD%97%E6%AF%8D%E5%BC%82%E4%BD%8D%E8%AF%8D.ts
移动零https://leetcode.cn/problems/move-zeroes/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/283.%E7%A7%BB%E5%8A%A8%E9%9B%B6.ts
二叉树的序列化与反序列化https://leetcode.cn/problems/serialize-and-deserialize-binary-tree/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/297.%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E5%BA%8F%E5%88%97%E5%8C%96%E4%B8%8E%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96.ts
反转字符串https://leetcode.cn/problems/reverse-string/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/344.%E5%8F%8D%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2.ts
反转字符串中的元音字母https://leetcode.cn/problems/reverse-vowels-of-a-string/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/345.%E5%8F%8D%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%9A%84%E5%85%83%E9%9F%B3%E5%AD%97%E6%AF%8D.ts
两个数组的交集 IIhttps://leetcode.cn/problems/intersection-of-two-arrays-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/350.%E4%B8%A4%E4%B8%AA%E6%95%B0%E7%BB%84%E7%9A%84%E4%BA%A4%E9%9B%86-ii.ts
字符串中的第一个唯一字符https://leetcode.cn/problems/first-unique-character-in-a-string/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/387.%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%94%AF%E4%B8%80%E5%AD%97%E7%AC%A6.ts
N 叉树的层序遍历https://leetcode.cn/problems/n-ary-tree-level-order-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/429.n-%E5%8F%89%E6%A0%91%E7%9A%84%E5%B1%82%E5%BA%8F%E9%81%8D%E5%8E%86.ts
找到字符串中所有字母异位词https://leetcode.cn/problems/find-all-anagrams-in-a-string/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/438.%E6%89%BE%E5%88%B0%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E6%89%80%E6%9C%89%E5%AD%97%E6%AF%8D%E5%BC%82%E4%BD%8D%E8%AF%8D.ts
分发饼干https://leetcode.cn/problems/assign-cookies/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/455.%E5%88%86%E5%8F%91%E9%A5%BC%E5%B9%B2.ts
最大连续 1 的个数https://leetcode.cn/problems/max-consecutive-ones/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/485.%E6%9C%80%E5%A4%A7%E8%BF%9E%E7%BB%AD-1-%E7%9A%84%E4%B8%AA%E6%95%B0.ts
对角线遍历https://leetcode.cn/problems/diagonal-traverse/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/498.%E5%AF%B9%E8%A7%92%E7%BA%BF%E9%81%8D%E5%8E%86.ts
下一个更大元素 IIhttps://leetcode.cn/problems/next-greater-element-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/503.%E4%B8%8B%E4%B8%80%E4%B8%AA%E6%9B%B4%E5%A4%A7%E5%85%83%E7%B4%A0-ii.ts
反转字符串中的单词 IIIhttps://leetcode.cn/problems/reverse-words-in-a-string-iii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/557.%E5%8F%8D%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%AD%E7%9A%84%E5%8D%95%E8%AF%8D-iii.ts
数组拆分https://leetcode.cn/problems/array-partition/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/561.%E6%95%B0%E7%BB%84%E6%8B%86%E5%88%86.ts
N 叉树的前序遍历https://leetcode.cn/problems/n-ary-tree-preorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/589.n-%E5%8F%89%E6%A0%91%E7%9A%84%E5%89%8D%E5%BA%8F%E9%81%8D%E5%8E%86.ts
N 叉树的后序遍历https://leetcode.cn/problems/n-ary-tree-postorder-traversal/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/590.n-%E5%8F%89%E6%A0%91%E7%9A%84%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86.ts
验证回文串 IIhttps://leetcode.cn/problems/valid-palindrome-ii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/680.%E9%AA%8C%E8%AF%81%E5%9B%9E%E6%96%87%E4%B8%B2-ii.ts
二分查找https://leetcode.cn/problems/binary-search/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/704.%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE.ts
转换成小写字母https://leetcode.cn/problems/to-lower-case/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/709.%E8%BD%AC%E6%8D%A2%E6%88%90%E5%B0%8F%E5%86%99%E5%AD%97%E6%AF%8D.ts
寻找数组的中心下标https://leetcode.cn/problems/find-pivot-index/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/724.%E5%AF%BB%E6%89%BE%E6%95%B0%E7%BB%84%E7%9A%84%E4%B8%AD%E5%BF%83%E4%B8%8B%E6%A0%87.ts
每日温度https://leetcode.cn/problems/daily-temperatures/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/739.%E6%AF%8F%E6%97%A5%E6%B8%A9%E5%BA%A6.ts
柠檬水找零https://leetcode.cn/problems/lemonade-change/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/860.%E6%9F%A0%E6%AA%AC%E6%B0%B4%E6%89%BE%E9%9B%B6.ts
模拟行走机器人https://leetcode.cn/problems/walking-robot-simulation/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/874.%E6%A8%A1%E6%8B%9F%E8%A1%8C%E8%B5%B0%E6%9C%BA%E5%99%A8%E4%BA%BA.ts
股票价格跨度https://leetcode.cn/problems/online-stock-span/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/901.%E8%82%A1%E7%A5%A8%E4%BB%B7%E6%A0%BC%E8%B7%A8%E5%BA%A6.ts
排序数组https://leetcode.cn/problems/sort-an-array/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/912.%E6%8E%92%E5%BA%8F%E6%95%B0%E7%BB%84.ts
最大连续 1 的个数 IIIhttps://leetcode.cn/problems/max-consecutive-ones-iii/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/1004.%E6%9C%80%E5%A4%A7%E8%BF%9E%E7%BB%AD-1-%E7%9A%84%E4%B8%AA%E6%95%B0-iii.ts
尽可能使字符串相等https://leetcode.cn/problems/get-equal-substrings-within-budget/description/
TypeScripthttps://patch-diff.githubusercontent.com/mcxue/leetcode/blob/master/algorithms/typescript/1208.%E5%B0%BD%E5%8F%AF%E8%83%BD%E4%BD%BF%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9B%B8%E7%AD%89.ts
Readme https://patch-diff.githubusercontent.com/mcxue/leetcode#readme-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/mcxue/leetcode
Activityhttps://patch-diff.githubusercontent.com/mcxue/leetcode/activity
1 starhttps://patch-diff.githubusercontent.com/mcxue/leetcode/stargazers
1 watchinghttps://patch-diff.githubusercontent.com/mcxue/leetcode/watchers
0 forkshttps://patch-diff.githubusercontent.com/mcxue/leetcode/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fmcxue%2Fleetcode&report=mcxue+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/mcxue/leetcode/releases
Packages 0https://patch-diff.githubusercontent.com/users/mcxue/packages?repo_name=leetcode
Please reload this pagehttps://patch-diff.githubusercontent.com/mcxue/leetcode
TypeScript 97.3% https://patch-diff.githubusercontent.com/mcxue/leetcode/search?l=typescript
Go 2.7% https://patch-diff.githubusercontent.com/mcxue/leetcode/search?l=go
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.