Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
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 }}
magicly
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
master
Breadcrumbs
leetcode
/
js
/
Copy path
Directory actions
More options
Directory actions
More options
Latest commit
History
History
master
Breadcrumbs
leetcode
/
js
/
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
1-two-sum.js
1-two-sum.js
1.两数之和.js
1.两数之和.js
100.相同的树.js
100.相同的树.js
101.对称二叉树.js
101.对称二叉树.js
104.二叉树的最大深度.js
104.二叉树的最大深度.js
107.二叉树的层次遍历-ii.js
107.二叉树的层次遍历-ii.js
121-best-time-to-buy-and-sell-stock.js
121-best-time-to-buy-and-sell-stock.js
121.买卖股票的最佳时机.js
121.买卖股票的最佳时机.js
122-best-time-to-buy-and-sell-stock-ii.js
122-best-time-to-buy-and-sell-stock-ii.js
122.买卖股票的最佳时机-ii.js
122.买卖股票的最佳时机-ii.js
123-best-time-to-buy-and-sell-stock-iii.js
123-best-time-to-buy-and-sell-stock-iii.js
125.验证回文串.js
125.验证回文串.js
136.只出现一次的数字.js
136.只出现一次的数字.js
14.最长公共前缀.js
14.最长公共前缀.js
15-3sum.js
15-3sum.js
16-3sum-closest.js
16-3sum-closest.js
167-two-sum-ii-input-array-is-sorted.js
167-two-sum-ii-input-array-is-sorted.js
169-majority-element.js
169-majority-element.js
188-best-time-to-buy-and-sell-stock-iv.js
188-best-time-to-buy-and-sell-stock-iv.js
189-rotate-array.js
189-rotate-array.js
191.位-1-的个数.js
191.位-1-的个数.js
2-add-two-numbers.js
2-add-two-numbers.js
20.有效的括号.js
20.有效的括号.js
21.合并两个有序链表.js
21.合并两个有序链表.js
217-duplicate.js
217-duplicate.js
217.存在重复元素.js
217.存在重复元素.js
219-duplicate-2.js
219-duplicate-2.js
220-duplicate-3.js
220-duplicate-3.js
226.翻转二叉树.js
226.翻转二叉树.js
229-majority-element-2.js
229-majority-element-2.js
242.有效的字母异位词.js
242.有效的字母异位词.js
26-remove-duplicates-from-sorted-array.js
26-remove-duplicates-from-sorted-array.js
27-remove-element.js
27-remove-element.js
27.移除元素.js
27.移除元素.js
28.实现-str-str.js
28.实现-str-str.js
283-move-zeros.js
283-move-zeros.js
292.nim-游戏.js
292.nim-游戏.js
303.区域和检索-数组不可变.js
303.区域和检索-数组不可变.js
326.3-的幂.js
326.3-的幂.js
342.4-的幂.js
342.4-的幂.js
344.反转字符串.js
344.反转字符串.js
349.两个数组的交集.js
349.两个数组的交集.js
35.搜索插入位置.js
35.搜索插入位置.js
367.有效的完全平方数.js
367.有效的完全平方数.js
38.报数.js
38.报数.js
41-first-missing-positive.js
41-first-missing-positive.js
414-third-max-number.js
414-third-max-number.js
442-find-all-duplicates-in-an-array.js
442-find-all-duplicates-in-an-array.js
448-find-all-numbers.js
448-find-all-numbers.js
53-maximum-subarray.js
53-maximum-subarray.js
53.最大子序和.js
53.最大子序和.js
66-plus-one.js
66-plus-one.js
67.二进制求和.js
67.二进制求和.js
69.x-的平方根.js
69.x-的平方根.js
7.整数反转.js
7.整数反转.js
88.合并两个有序数组.js
88.合并两个有序数组.js
9.回文数.js
9.回文数.js
View all files
You can’t perform that action at this time.