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 }}
guling
leetcode-share
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
leetcode-share
/
java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode-share
/
java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
_001TwoSum.java
_001TwoSum.java
_002AddTwoNumbers.java
_002AddTwoNumbers.java
_003LongestSubStringWithoutRepeatingCharacters.java
_003LongestSubStringWithoutRepeatingCharacters.java
_004MedianOfTwoSortedArrays.java
_004MedianOfTwoSortedArrays.java
_007ReverseInteger.java
_007ReverseInteger.java
_009PalindromeNumber.java
_009PalindromeNumber.java
_013RomanToInteger.java
_013RomanToInteger.java
_0184Sum.java
_0184Sum.java
_019RemoveNthNodeFromEndOfList.java
_019RemoveNthNodeFromEndOfList.java
_020ValidParentheses.java
_020ValidParentheses.java
_021MergeTwoSortedLists.java
_021MergeTwoSortedLists.java
_023MergeKSortedLists.java
_023MergeKSortedLists.java
_024SwapNodesInPairs.java
_024SwapNodesInPairs.java
_025ReverseNodesInKGroup.java
_025ReverseNodesInKGroup.java
_042TrappingRainWater.java
_042TrappingRainWater.java
_071SimplifyPath.java
_071SimplifyPath.java
_094BinaryTreeInorderTraversal.java
_094BinaryTreeInorderTraversal.java
_095UniqueBinarySearchTreesII.java
_095UniqueBinarySearchTreesII.java
_096UniqueBinarySearchTrees.java
_096UniqueBinarySearchTrees.java
_098ValidateBinarySearchTree.java
_098ValidateBinarySearchTree.java
_099RecoverBinarySearchTree.java
_099RecoverBinarySearchTree.java
_100SameTree.java
_100SameTree.java
_101SymmetricTree.java
_101SymmetricTree.java
_102BinaryTreeLevelOrderTraversal.java
_102BinaryTreeLevelOrderTraversal.java
_103BinaryTreeZigzagLevelOrderTraversal.java
_103BinaryTreeZigzagLevelOrderTraversal.java
_144BinaryTreePreorderTraversal.java
_144BinaryTreePreorderTraversal.java
_145BinaryTreePostorderTraversal.java
_145BinaryTreePostorderTraversal.java
_150EvaluateReversePolishNotation.java
_150EvaluateReversePolishNotation.java
_155MinStack.java
_155MinStack.java
_173BinarySearchTreeIterator.java
_173BinarySearchTreeIterator.java
_215KthLargestElementInAnArray.java
_215KthLargestElementInAnArray.java
_224BasicCalculator.java
_224BasicCalculator.java
_225ImplementStackUsingQueues.java
_225ImplementStackUsingQueues.java
_232ImplementQueueUsingStacks.java
_232ImplementQueueUsingStacks.java
_239SlidingWindowMaximum.java
_239SlidingWindowMaximum.java
_257BinaryTreePaths.java
_257BinaryTreePaths.java
_258AddDigits.java
_258AddDigits.java
_260SingleNumberIII.java
_260SingleNumberIII.java
_264UglyNumberII.java
_264UglyNumberII.java
_273IntegertoEnglishWords.java
_273IntegertoEnglishWords.java
_274H_Index.java
_274H_Index.java
_283MoveZeroes.java
_283MoveZeroes.java
_292NimGame.java
_292NimGame.java
_295FindMedianFromDataStream.java
_295FindMedianFromDataStream.java
_299BullsandCows.java
_299BullsandCows.java
_313SuperUglyNumber.java
_313SuperUglyNumber.java
_316RemoveDuplicateLetters.java
_316RemoveDuplicateLetters.java
_331VerifyPreorderSerializationOfABinaryTree.java
_331VerifyPreorderSerializationOfABinaryTree.java
_341FlattenNestedListIterator.java
_341FlattenNestedListIterator.java
_347TopKFrequentElements.java
_347TopKFrequentElements.java
_385MiniParser.java
_385MiniParser.java
_387FirstUniqueCharacterinaString.java
_387FirstUniqueCharacterinaString.java
_394DecodeString.java
_394DecodeString.java
_402RemoveKDigits.java
_402RemoveKDigits.java
_456132Pattern.java
_456132Pattern.java
_496NextGreaterElementI.java
_496NextGreaterElementI.java
View all files
You can’t perform that action at this time.