Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
zangbianxuegu
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
320 Commits
320 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.gitignore
.gitignore
0001. Two Sum.js
0001. Two Sum.js
0002. Add Two Numbers.js
0002. Add Two Numbers.js
0003. Longest Substring Without Repeating Characters.js
0003. Longest Substring Without Repeating Characters.js
0004. Median of Two Sorted Arrays.js
0004. Median of Two Sorted Arrays.js
0005. Longest Palindromic Substring.js
0005. Longest Palindromic Substring.js
0006. ZigZag Conversion.js
0006. ZigZag Conversion.js
0007. Reverse Integer.js
0007. Reverse Integer.js
0008. String to Integer (atoi).js
0008. String to Integer (atoi).js
0009. Palindrome Number.js
0009. Palindrome Number.js
0010. Regular Expression Matching.js
0010. Regular Expression Matching.js
0012. Integer to Roman.js
0012. Integer to Roman.js
0013. Roman to Integer.js
0013. Roman to Integer.js
0014. Longest Common Prefix.js
0014. Longest Common Prefix.js
0015. 3Sum.js
0015. 3Sum.js
0016. 3Sum Closest.js
0016. 3Sum Closest.js
0017. Letter Combinations of a Phone Number.js
0017. Letter Combinations of a Phone Number.js
0018. 4Sum.js
0018. 4Sum.js
0019. Remove Nth Node From End of List.js
0019. Remove Nth Node From End of List.js
0020. Valid Parentheses.js
0020. Valid Parentheses.js
0021. Merge Two Sorted Lists.js
0021. Merge Two Sorted Lists.js
0022. Generate Parentheses.js
0022. Generate Parentheses.js
0024. Swap Nodes in Pairs.js
0024. Swap Nodes in Pairs.js
0026. Remove Duplicates from Sorted Array.js
0026. Remove Duplicates from Sorted Array.js
0027. Remove Element.js
0027. Remove Element.js
0028. Implement strStr().js
0028. Implement strStr().js
0029. Divide Two Integers.js
0029. Divide Two Integers.js
0032. Longest Valid Parentheses.js
0032. Longest Valid Parentheses.js
0033. Search in Rotated Sorted Array.js
0033. Search in Rotated Sorted Array.js
0034. Find First and Last Position of Element in Sorted Array.js
0034. Find First and Last Position of Element in Sorted Array.js
0035. Search Insert Position.js
0035. Search Insert Position.js
0038. Count and Say.js
0038. Count and Say.js
0039. Combination Sum.js
0039. Combination Sum.js
0040. Combination Sum II.js
0040. Combination Sum II.js
0041. First Missing Positive.js
0041. First Missing Positive.js
0043. Multiply Strings.js
0043. Multiply Strings.js
0045. Jump Game II.js
0045. Jump Game II.js
0049. Group Anagrams.js
0049. Group Anagrams.js
0050. Pow(x, n).js
0050. Pow(x, n).js
0053. Maximum Subarray.js
0053. Maximum Subarray.js
0054. Spiral Matrix.js
0054. Spiral Matrix.js
0055. Jump Game.js
0055. Jump Game.js
0056. Merge Intervals.js
0056. Merge Intervals.js
0057. Insert Interval.js
0057. Insert Interval.js
0058. Length of Last Word.js
0058. Length of Last Word.js
0059. Spiral Matrix II.js
0059. Spiral Matrix II.js
0060. Permutation Sequence.js
0060. Permutation Sequence.js
0061. Rotate List.js
0061. Rotate List.js
0062. Unique Paths.js
0062. Unique Paths.js
0063. Unique Paths II.js
0063. Unique Paths II.js
0064. Minimum Path Sum.js
0064. Minimum Path Sum.js
0066. Plus One.js
0066. Plus One.js
0067. Add Binary.js
0067. Add Binary.js
0069. Sqrt(x).js
0069. Sqrt(x).js
0070. Climbing Stairs.js
0070. Climbing Stairs.js
0071. Simplify Path.js
0071. Simplify Path.js
0073. Set Matrix Zeroes.js
0073. Set Matrix Zeroes.js
0074. Search a 2D Matrix.js
0074. Search a 2D Matrix.js
0075. Sort Colors.js
0075. Sort Colors.js
0078. Subsets.js
0078. Subsets.js
0080. Remove Duplicates from Sorted Array II.js
0080. Remove Duplicates from Sorted Array II.js
0081. Search in Rotated Sorted Array II.js
0081. Search in Rotated Sorted Array II.js
0082. Remove Duplicates from Sorted List II.js
0082. Remove Duplicates from Sorted List II.js
0083. Remove Duplicates from Sorted List.js
0083. Remove Duplicates from Sorted List.js
0088. Merge Sorted Array.js
0088. Merge Sorted Array.js
0090. Subsets II.js
0090. Subsets II.js
0091. Decode Ways.js
0091. Decode Ways.js
0092. Reverse Linked List II.js
0092. Reverse Linked List II.js
0094. Binary Tree Inorder Traversal.js
0094. Binary Tree Inorder Traversal.js
0095. Unique Binary Search Trees II.js
0095. Unique Binary Search Trees II.js
0096. Unique Binary Search Trees.js
0096. Unique Binary Search Trees.js
0098. Validate Binary Search Tree.js
0098. Validate Binary Search Tree.js
0099. Recover Binary Search Tree.js
0099. Recover Binary Search Tree.js
0100. Same Tree.js
0100. Same Tree.js
0101. Symmetric Tree.js
0101. Symmetric Tree.js
0102. Binary Tree Level Order Traversal.js
0102. Binary Tree Level Order Traversal.js
0103. Binary Tree Zigzag Level Order Traversal.js
0103. Binary Tree Zigzag Level Order Traversal.js
0104. Maximum Depth of Binary Tree.js
0104. Maximum Depth of Binary Tree.js
0105. Construct Binary Tree from Preorder and Inorder Traversal.js
0105. Construct Binary Tree from Preorder and Inorder Traversal.js
0106. Construct Binary Tree from Inorder and Postorder Traversal.js
0106. Construct Binary Tree from Inorder and Postorder Traversal.js
0107. Binary Tree Level Order Traversal II.js
0107. Binary Tree Level Order Traversal II.js
0108. Convert Sorted Array to Binary Search Tree.js
0108. Convert Sorted Array to Binary Search Tree.js
0109. Convert Sorted List to Binary Search Tree.js
0109. Convert Sorted List to Binary Search Tree.js
0110. Balanced Binary Tree.js
0110. Balanced Binary Tree.js
0111. Minimum Depth of Binary Tree.js
0111. Minimum Depth of Binary Tree.js
0112. Path Sum.js
0112. Path Sum.js
0113. Path Sum II.js
0113. Path Sum II.js
0114. Flatten Binary Tree to Linked List.js
0114. Flatten Binary Tree to Linked List.js
0115. Distinct Subsequences.js
0115. Distinct Subsequences.js
0116. Populating Next Right Pointers in Each Node.js
0116. Populating Next Right Pointers in Each Node.js
0117. Populating Next Right Pointers in Each Node II.js
0117. Populating Next Right Pointers in Each Node II.js
0118. Pascal's Triangle.js
0118. Pascal's Triangle.js
0119. Pascal's Triangle II.js
0119. Pascal's Triangle II.js
0120. Triangle.js
0120. Triangle.js
0121. Best Time to Buy and Sell Stock.js
0121. Best Time to Buy and Sell Stock.js
0122. Best Time to Buy and Sell Stock II.js
0122. Best Time to Buy and Sell Stock II.js
0123. Best Time to Buy and Sell Stock III.js
0123. Best Time to Buy and Sell Stock III.js
0124. Binary Tree Maximum Path Sum.js
0124. Binary Tree Maximum Path Sum.js
0125. Valid Palindrome.js
0125. Valid Palindrome.js
0126. Word Ladder II.js
0126. Word Ladder II.js
View all files
Repository files navigation
README
More
items
LeetCode
记录 LeetCode 解题历程
About
LeetCode JavaScript solutions
Topics
algorithms
array
backtracking
dynamic-programming
hashmap
javascript
leetcode
recursion
trie
two-pointers
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.