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 }}
462396942
/
leetcode
Public
forked from
corpsepiges/leetcode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
leetcode
/
java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode
/
java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
001. Two Sum.java
001. Two Sum.java
002. Add Two Numbers.java
002. Add Two Numbers.java
003. Longest Substring Without Repeating Characters.java
003. Longest Substring Without Repeating Characters.java
006. ZigZag Conversion.java
006. ZigZag Conversion.java
007. Reverse Integer.java
007. Reverse Integer.java
008. String to Integer (atoi).java
008. String to Integer (atoi).java
009. Palindrome Number.java
009. Palindrome Number.java
010. Regular Expression Matching.java
010. Regular Expression Matching.java
011. Container With Most Water.java
011. Container With Most Water.java
012. Integer to Roman.java
012. Integer to Roman.java
013. Roman to Integer.java
013. Roman to Integer.java
014. Longest Common Prefix.java
014. Longest Common Prefix.java
015. 3Sum.java
015. 3Sum.java
016. 3Sum Closest.java
016. 3Sum Closest.java
017. Letter Combinations of a Phone Number.java
017. Letter Combinations of a Phone Number.java
018. 4Sum.java
018. 4Sum.java
019. Remove Nth Node From End of List.java
019. Remove Nth Node From End of List.java
020. Valid Parentheses.java
020. Valid Parentheses.java
021. Merge Two Sorted Lists.java
021. Merge Two Sorted Lists.java
022. Generate Parentheses.java
022. Generate Parentheses.java
023. Merge k Sorted Lists.java
023. Merge k Sorted Lists.java
024. Swap Nodes in Pairs.java
024. Swap Nodes in Pairs.java
025. Reverse Nodes in k-Group.java
025. Reverse Nodes in k-Group.java
026. Remove Duplicates from Sorted Array.java
026. Remove Duplicates from Sorted Array.java
027. Remove Element.java
027. Remove Element.java
028. Implement strStr().java
028. Implement strStr().java
029. Divide Two Integers.java
029. Divide Two Integers.java
031. Next Permutation.java
031. Next Permutation.java
032. Longest Valid Parentheses.java
032. Longest Valid Parentheses.java
033. Search in Rotated Sorted Array.java
033. Search in Rotated Sorted Array.java
034. Search for a Range.java
034. Search for a Range.java
035. Search Insert Position.java
035. Search Insert Position.java
036. Valid Sudoku.java
036. Valid Sudoku.java
037. Sudoku Solver.java
037. Sudoku Solver.java
038. Count and Say.java
038. Count and Say.java
039. Combination Sum.java
039. Combination Sum.java
040. Combination Sum II.java
040. Combination Sum II.java
041. First Missing Positive.java
041. First Missing Positive.java
042. Trapping Rain Water.java
042. Trapping Rain Water.java
043. Multiply Strings.java
043. Multiply Strings.java
045. Jump Game II.java
045. Jump Game II.java
046. Permutations.java
046. Permutations.java
047. Permutations II.java
047. Permutations II.java
048. Rotate Image.java
048. Rotate Image.java
049. Group Anagrams.java
049. Group Anagrams.java
050. Pow(x, n).java
050. Pow(x, n).java
051. N-Queens.java
051. N-Queens.java
052. N-Queens II.java
052. N-Queens II.java
053. Maximum Subarray.java
053. Maximum Subarray.java
054. Spiral Matrix.java
054. Spiral Matrix.java
055. Jump Game.java
055. Jump Game.java
056. Merge Intervals.java
056. Merge Intervals.java
057. Insert Interval.java
057. Insert Interval.java
058. Length of Last Word.java
058. Length of Last Word.java
059. Spiral Matrix II.java
059. Spiral Matrix II.java
060. Permutation Sequence.java
060. Permutation Sequence.java
061. Rotate List.java
061. Rotate List.java
062. Unique Paths.java
062. Unique Paths.java
063. Unique Paths II.java
063. Unique Paths II.java
064. Minimum Path Sum.java
064. Minimum Path Sum.java
066. Plus One.java
066. Plus One.java
067. Add Binary.java
067. Add Binary.java
068. Text Justification.java
068. Text Justification.java
069. Sqrt(x).java
069. Sqrt(x).java
070. Climbing Stairs.java
070. Climbing Stairs.java
072. Edit Distance.java
072. Edit Distance.java
073. Set Matrix Zeroes.java
073. Set Matrix Zeroes.java
074. Search a 2D Matrix.java
074. Search a 2D Matrix.java
075. Sort Colors.java
075. Sort Colors.java
077. Combinations.java
077. Combinations.java
078. Subsets.java
078. Subsets.java
079. Word Search.java
079. Word Search.java
080. Remove Duplicates from Sorted Array II.java
080. Remove Duplicates from Sorted Array II.java
081. Search in Rotated Sorted Array II.java
081. Search in Rotated Sorted Array II.java
082. Remove Duplicates from Sorted List II.java
082. Remove Duplicates from Sorted List II.java
083. Remove Duplicates from Sorted List.java
083. Remove Duplicates from Sorted List.java
086. Partition List.java
086. Partition List.java
087. Scramble String.java
087. Scramble String.java
088. Merge Sorted Array.java
088. Merge Sorted Array.java
089. Gray Code.java
089. Gray Code.java
090. Subsets II.java
090. Subsets II.java
091. Decode Ways.java
091. Decode Ways.java
092. Reverse Linked List II.java
092. Reverse Linked List II.java
093. Restore IP Addresses.java
093. Restore IP Addresses.java
094. Binary Tree Inorder Traversal.java
094. Binary Tree Inorder Traversal.java
095. Unique Binary Search Trees II.java
095. Unique Binary Search Trees II.java
096. Unique Binary Search Trees.java
096. Unique Binary Search Trees.java
097. Interleaving String.java
097. Interleaving String.java
098. Validate Binary Search Tree.java
098. Validate Binary Search Tree.java
100. Same Tree.java
100. Same Tree.java
101. Symmetric Tree.java
101. Symmetric Tree.java
102. Binary Tree Level Order Traversal.java
102. Binary Tree Level Order Traversal.java
103. Binary Tree Zigzag Level Order Traversal.java
103. Binary Tree Zigzag Level Order Traversal.java
104. Maximum Depth of Binary Tree.java
104. Maximum Depth of Binary Tree.java
105. Construct Binary Tree from Preorder and Inorder Traversal.java
105. Construct Binary Tree from Preorder and Inorder Traversal.java
106. Construct Binary Tree from Inorder and Postorder Traversal.java
106. Construct Binary Tree from Inorder and Postorder Traversal.java
107. Binary Tree Level Order Traversal II.java
107. Binary Tree Level Order Traversal II.java
108. Convert Sorted Array to Binary Search Tree.java
108. Convert Sorted Array to Binary Search Tree.java
109. Convert Sorted List to Binary Search Tree.java
109. Convert Sorted List to Binary Search Tree.java
110. Balanced Binary Tree.java
110. Balanced Binary Tree.java
View all files
You can’t perform that action at this time.