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
Type
/
to 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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
1code
/
leetcode3
Public
forked from
mengli/leetcode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
15 Commits
15 Commits
3sum.java
3sum.java
4Sum.java
4Sum.java
Add Binary.java
Add Binary.java
Add Two Numbers.java
Add Two Numbers.java
Anagrams.java
Anagrams.java
Balanced Binary Tree.java
Balanced Binary Tree.java
Best Time to Buy and Sell Stock II.java
Best Time to Buy and Sell Stock II.java
Best Time to Buy and Sell Stock III.java
Best Time to Buy and Sell Stock III.java
Best Time to Buy and Sell Stock.java
Best Time to Buy and Sell Stock.java
Binary Tree Inorder Traversal.java
Binary Tree Inorder Traversal.java
Binary Tree Level Order Traversal II.java
Binary Tree Level Order Traversal II.java
Binary Tree Maximum Path Sum.java
Binary Tree Maximum Path Sum.java
Candy.java
Candy.java
Climbing Stairs.java
Climbing Stairs.java
Combination Sum.java
Combination Sum.java
Combinations.java
Combinations.java
Construct Binary Tree from Inorder and Postorder Traversal.java
Construct Binary Tree from Inorder and Postorder Traversal.java
Container With Most Water.java
Container With Most Water.java
Convert Sorted Array to Binary Search Tree.java
Convert Sorted Array to Binary Search Tree.java
Convert Sorted List to Binary Search Tree.java
Convert Sorted List to Binary Search Tree.java
Copy List with Random Pointer.java
Copy List with Random Pointer.java
Count and Say.java
Count and Say.java
Decode Ways.java
Decode Ways.java
Distinct Subsequences.java
Distinct Subsequences.java
Divide Two Integers.java
Divide Two Integers.java
Edit Distance.java
Edit Distance.java
First Missing Positive.java
First Missing Positive.java
Flatten Binary Tree to Linked List.java
Flatten Binary Tree to Linked List.java
Generate Parentheses.java
Generate Parentheses.java
Gray Code.java
Gray Code.java
Implement strStr().java
Implement strStr().java
Integer to Roman.java
Integer to Roman.java
Interleaving String.java
Interleaving String.java
Jump Game.java
Jump Game.java
Largest Rectangle in Histogram.java
Largest Rectangle in Histogram.java
Length of Last Word.java
Length of Last Word.java
Letter Combinations of a Phone Number.java
Letter Combinations of a Phone Number.java
Longest Common Prefix.java
Longest Common Prefix.java
Longest Consecutive Sequence.java
Longest Consecutive Sequence.java
Longest Palindromic Substring.java
Longest Palindromic Substring.java
Longest Substring Without Repeating Characters.java
Longest Substring Without Repeating Characters.java
Longest Valid Parentheses.java
Longest Valid Parentheses.java
Lowest Common Ancestor of a Binary Tree.java
Lowest Common Ancestor of a Binary Tree.java
Maximal Rectangle.java
Maximal Rectangle.java
Merge Intervals.java
Merge Intervals.java
Merge Sorted Array.java
Merge Sorted Array.java
Merge Two Sorted Lists.java
Merge Two Sorted Lists.java
Merge k Sorted Lists.java
Merge k Sorted Lists.java
Minimum Depth of Binary Tree.java
Minimum Depth of Binary Tree.java
Minimum Path Sum.java
Minimum Path Sum.java
Minimum Window Substring.java
Minimum Window Substring.java
Next Permutation.java
Next Permutation.java
Palindrome Number.java
Palindrome Number.java
Palindrome Partitioning II.java
Palindrome Partitioning II.java
Palindrome Partitioning.java
Palindrome Partitioning.java
Partition List.java
Partition List.java
Pascal Triangle.java
Pascal Triangle.java
Path Sum II.java
Path Sum II.java
Path Sum.java
Path Sum.java
Permutations II.java
Permutations II.java
Plus One.java
Plus One.java
Populating Next Right Pointers in Each Node II.java
Populating Next Right Pointers in Each Node II.java
Populating Next Right Pointers in Each Node.java
Populating Next Right Pointers in Each Node.java
Pow(x, n).java
Pow(x, n).java
README.md
README.md
Recover Binary Search Tree.java
Recover Binary Search Tree.java
Regular Expression Matching.java
Regular Expression Matching.java
Remove Duplicates from Sorted Array.java
Remove Duplicates from Sorted Array.java
Remove Duplicates from Sorted List II.java
Remove Duplicates from Sorted List II.java
Remove Duplicates from Sorted List.java
Remove Duplicates from Sorted List.java
Remove Element.java
Remove Element.java
Remove Nth Node From End of List.java
Remove Nth Node From End of List.java
Restore IP Addresses.java
Restore IP Addresses.java
Reverse Integer.java
Reverse Integer.java
Reverse Linked List II.java
Reverse Linked List II.java
Reverse Nodes in k-Group.java
Reverse Nodes in k-Group.java
Roman to Integer.java
Roman to Integer.java
Rotate Image.java
Rotate Image.java
Same Tree.java
Same Tree.java
Scramble String.java
Scramble String.java
Search Insert Position.java
Search Insert Position.java
Search a 2D Matrix.java
Search a 2D Matrix.java
Search for a Range.java
Search for a Range.java
Search in Rotated Sorted Array II.java
Search in Rotated Sorted Array II.java
Search in Rotated Sorted Array.java
Search in Rotated Sorted Array.java
Set Matrix Zeroes.java
Set Matrix Zeroes.java
Single Number.java
Single Number.java
Sort Colors.java
Sort Colors.java
Spiral Matrix.java
Spiral Matrix.java
Sqrt(x).java
Sqrt(x).java
String to Integer (atoi).java
String to Integer (atoi).java
Subsets II.java
Subsets II.java
Subsets.java
Subsets.java
Substring with Concatenation of All Words.java
Substring with Concatenation of All Words.java
Sum Root to Leaf Numbers.java
Sum Root to Leaf Numbers.java
Surrounded Regions.java
Surrounded Regions.java
Swap Nodes in Pairs.java
Swap Nodes in Pairs.java
Symmetric Tree.java
Symmetric Tree.java
Triangle.java
Triangle.java
Two Sum.java
Two Sum.java
View all files
Repository files navigation
README
More
items
leetcode
leetcode
About
leetcode
Resources
Readme
Activity
Custom properties
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.