Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
song2015
Leetcode
Repository navigation
Code
Issues
4
(4)
Pull requests
3
(3)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
1
(
1
)
You must be signed in to star a repository
About
Leetcode1
Activity
Stars
1
star
Watchers
2
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
64 Commits
64 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1.Two Sum
1.Two Sum
10.Longest Substring Without Repeating Characters
10.Longest Substring Without Repeating Characters
12. *Missing Ranges
12. *Missing Ranges
13.Longest Palindromic Substring(M)
13.Longest Palindromic Substring(M)
14.One Edit Distance
14.One Edit Distance
15.*Read N Characters Given Read4
15.*Read N Characters Given Read4
169. Majority Element
169. Majority Element
21. Merge Two Sorted Lists
21. Merge Two Sorted Lists
21.Add Two Numbers(M)
21.Add Two Numbers(M)
22.Swap Nodes in Pairs
22.Swap Nodes in Pairs
23.Merge k Sorted Lists(H)
23.Merge k Sorted Lists(H)
24.Copy List with Random Pointer (H)
24.Copy List with Random Pointer (H)
25.Validate Binary Search Tree(M)
25.Validate Binary Search Tree(M)
26.Maximum Depth of Binary Tree
26.Maximum Depth of Binary Tree
27.Minimum Depth of Binary Tree
27.Minimum Depth of Binary Tree
28.Balanced Binary Tree
28.Balanced Binary Tree
29. Convert Sorted Array to Binary Search Tree(M)
29. Convert Sorted Array to Binary Search Tree(M)
31.(H)Binary Tree Maximum Path Sum
31.(H)Binary Tree Maximum Path Sum
32.*(M)Binary Tree Upside Down
32.*(M)Binary Tree Upside Down
33.Single Number
33.Single Number
34. Single Number II
34. Single Number II
35. (M)Spiral Matrix
35. (M)Spiral Matrix
4.Valid Palindrome
4.Valid Palindrome
6.Reverse Words in a String(M)
6.Reverse Words in a String(M)
7.*Reverse Words in a String 2(M)
7.*Reverse Words in a String 2(M)
8.String to Integer (atoi)
8.String to Integer (atoi)
9.Valid Number(H)
9.Valid Number(H)
Delete Node in a Linked List
Delete Node in a Linked List
Palindrome Linked List
Palindrome Linked List
Palindrome Number
Palindrome Number
Plus One
Plus One
Reverse Integer
Reverse Integer
Reverse Linked List
Reverse Linked List
Ugly Number
Ugly Number
View all files
About
Leetcode1
Activity
Stars
1
star
Watchers
2
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.