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
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
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 }}
apprentice7
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
1
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
154 Commits
154 Commits
Folders and files
Name
Name
Last commit message
Last commit date
001Twosum.cpp
001Twosum.cpp
002AddTwoNums.cpp
002AddTwoNums.cpp
003LengthOfLongestSubstring.cpp
003LengthOfLongestSubstring.cpp
004MedianForTwoSortedArray.cpp
004MedianForTwoSortedArray.cpp
005longestPalindrome.cpp
005longestPalindrome.cpp
006ZigzagConversion
006ZigzagConversion
007ReverseInteger.cpp
007ReverseInteger.cpp
008StringToInteger.cpp
008StringToInteger.cpp
009PalindromeNumber.cpp
009PalindromeNumber.cpp
010RegularExpressionMatching.cpp
010RegularExpressionMatching.cpp
011ContainerWithMostWater
011ContainerWithMostWater
012IntegerToRoman.cpp
012IntegerToRoman.cpp
013RomanToInt.cpp
013RomanToInt.cpp
014LongestCommonPrefix.cpp
014LongestCommonPrefix.cpp
015ThreeSum.cpp
015ThreeSum.cpp
016ThreeSumCloset.cpp
016ThreeSumCloset.cpp
017LetterCombinationOfPhoneNumber.cpp
017LetterCombinationOfPhoneNumber.cpp
018FourSum.cpp
018FourSum.cpp
019RemoveNthNodeFromEndOfList.cpp
019RemoveNthNodeFromEndOfList.cpp
020ValidParentheses.cpp
020ValidParentheses.cpp
021MergeTwoSortedList.cpp
021MergeTwoSortedList.cpp
022GenerateParentheses.cpp
022GenerateParentheses.cpp
023MergeKSortedLists.cpp
023MergeKSortedLists.cpp
024SwapNodesInPairs.cpp
024SwapNodesInPairs.cpp
025ReverseNodesKGroup.cpp
025ReverseNodesKGroup.cpp
026RemoveDuplicatesFromArray.cpp
026RemoveDuplicatesFromArray.cpp
027RemoveElement.cpp
027RemoveElement.cpp
028strStr.cpp
028strStr.cpp
029DivideTwoIntegers.cpp
029DivideTwoIntegers.cpp
030substringWithConcatenationOfAllWords.cpp
030substringWithConcatenationOfAllWords.cpp
031nextPermutation.cpp
031nextPermutation.cpp
032longestValidParentheses.cpp
032longestValidParentheses.cpp
033searchInRotatedSortedArray.cpp
033searchInRotatedSortedArray.cpp
034searchForRange.cpp
034searchForRange.cpp
035searchInsertPosition.cpp
035searchInsertPosition.cpp
036validSudoku.cpp
036validSudoku.cpp
037sudokuSolver.cpp
037sudokuSolver.cpp
038countAndSay.cpp
038countAndSay.cpp
039combinationSum.cpp
039combinationSum.cpp
040combinationSumII.cpp
040combinationSumII.cpp
041firstMissingPositive.cpp
041firstMissingPositive.cpp
042trappingRainWater.cpp
042trappingRainWater.cpp
043multiplyStrings.cpp
043multiplyStrings.cpp
044wildcardMatching.cpp
044wildcardMatching.cpp
045jumpGameII.cpp
045jumpGameII.cpp
046permutations.cpp
046permutations.cpp
047permutationsII.cpp
047permutationsII.cpp
048rotateImage.cpp
048rotateImage.cpp
049GroupAnagrams.cpp
049GroupAnagrams.cpp
050pow.cpp
050pow.cpp
051nQueuens.cpp
051nQueuens.cpp
052nQueuensII.cpp
052nQueuensII.cpp
053maximumSubArray.cpp
053maximumSubArray.cpp
054spiralMatrix.cpp
054spiralMatrix.cpp
055jumpGame.cpp
055jumpGame.cpp
056mergeIntervals.cpp
056mergeIntervals.cpp
057insertInterval.cpp
057insertInterval.cpp
058lengthOfLastWord.cpp
058lengthOfLastWord.cpp
059spiralMatrixII.cpp
059spiralMatrixII.cpp
060permutationSequence.cpp
060permutationSequence.cpp
061rotateList.cpp
061rotateList.cpp
062uniquePaths.cpp
062uniquePaths.cpp
063uniquePathsII.cpp
063uniquePathsII.cpp
064minimumPathSum.cpp
064minimumPathSum.cpp
065validNumber.cpp
065validNumber.cpp
066plusOne.cpp
066plusOne.cpp
067addBinary.cpp
067addBinary.cpp
068textJustification.cpp
068textJustification.cpp
069sqrt.cpp
069sqrt.cpp
070climbStairs.cpp
070climbStairs.cpp
071simplifyPath.cpp
071simplifyPath.cpp
072editDistance.cpp
072editDistance.cpp
073setMatrixZeroes.cpp
073setMatrixZeroes.cpp
074search2DMatrix.cpp
074search2DMatrix.cpp
075sortColors.cpp
075sortColors.cpp
076minimumWindowSubstring.cpp
076minimumWindowSubstring.cpp
077combinations.cpp
077combinations.cpp
078subsets.cpp
078subsets.cpp
079wordSearch.cpp
079wordSearch.cpp
080removeDuplicatesFromSortedArrayII.cpp
080removeDuplicatesFromSortedArrayII.cpp
081searchInRotatedSortedArrayII.cpp
081searchInRotatedSortedArrayII.cpp
082removeDuplicatesFromSortedListII.cpp
082removeDuplicatesFromSortedListII.cpp
083removeDuplicatesFromSortedList.cpp
083removeDuplicatesFromSortedList.cpp
084largestRectangleInHistogram.cpp
084largestRectangleInHistogram.cpp
085maximalRectangle.cpp
085maximalRectangle.cpp
086partitionList.cpp
086partitionList.cpp
087scrambleString.cpp
087scrambleString.cpp
088mergeTwoSortedArray.cpp
088mergeTwoSortedArray.cpp
089grayCode.cpp
089grayCode.cpp
090subsetsII.cpp
090subsetsII.cpp
091decodeWays.cpp
091decodeWays.cpp
092reverseLinkedListII.cpp
092reverseLinkedListII.cpp
093restoreIPAddresses.cpp
093restoreIPAddresses.cpp
094binaryTreeInorderTraversal.cpp
094binaryTreeInorderTraversal.cpp
095uniqueBinarySearchTrees.II.cpp
095uniqueBinarySearchTrees.II.cpp
096uniqueBinarySearchTrees.cpp
096uniqueBinarySearchTrees.cpp
097interleavingString.cpp
097interleavingString.cpp
098validateBinarySearchTree.cpp
098validateBinarySearchTree.cpp
099recoverBinarySearchTree.cpp
099recoverBinarySearchTree.cpp
100sameTree.cpp
100sameTree.cpp
View all files
Repository files navigation
README
More
items
Leetcode
Leetcode Algorithm
one practice per day
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
2
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.