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
Events
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 }}
Mayank-8127
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
Leetcode progress
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
160 Commits
160 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-TwoSum
1-TwoSum
1013-FibonacciNumber
1013-FibonacciNumber
1046-MaxConsecutiveOnesIii
1046-MaxConsecutiveOnesIii
1056-CapacityToShipPackagesWithinDDays
1056-CapacityToShipPackagesWithinDDays
1078-RemoveOutermostParentheses
1078-RemoveOutermostParentheses
118-Pascal'sTriangle/
version/
cpp
118-Pascal'sTriangle/
version/
cpp
118-PascalsTriangle
118-PascalsTriangle
121-BestTimeToBuyAndSellStock
121-BestTimeToBuyAndSellStock
125-ValidPalindrome
125-ValidPalindrome
128-LongestConsecutiveSequence
128-LongestConsecutiveSequence
13-RomanToInteger
13-RomanToInteger
131-PalindromePartitioning
131-PalindromePartitioning
136-SingleNumber
136-SingleNumber
137-SingleNumberIi
137-SingleNumberIi
1370-CountNumberOfNiceSubarrays
1370-CountNumberOfNiceSubarrays
138-CopyListWithRandomPointer
138-CopyListWithRandomPointer
14-LongestCommonPrefix
14-LongestCommonPrefix
1408-FindTheSmallestDivisorGivenAThreshold
1408-FindTheSmallestDivisorGivenAThreshold
141-LinkedListCycle
141-LinkedListCycle
142-LinkedListCycleIi
142-LinkedListCycleIi
1460-NumberOfSubstringsContainingAllThreeCharacters
1460-NumberOfSubstringsContainingAllThreeCharacters
148-SortList
148-SortList
15-3Sum/
version/
cpp
15-3Sum/
version/
cpp
15-3sum
15-3sum
151-ReverseWordsInAString
151-ReverseWordsInAString
152-MaximumProductSubarray
152-MaximumProductSubarray
153-FindMinimumInRotatedSortedArray
153-FindMinimumInRotatedSortedArray
1538-MaximumPointsYouCanObtainFromCards
1538-MaximumPointsYouCanObtainFromCards
155-MinStack
155-MinStack
160-IntersectionOfTwoLinkedLists
160-IntersectionOfTwoLinkedLists
1605-MinimumNumberOfDaysToMakeMBouquets
1605-MinimumNumberOfDaysToMakeMBouquets
162-FindPeakElement
162-FindPeakElement
1646-KthMissingPositiveNumber
1646-KthMissingPositiveNumber
169-MajorityElement
169-MajorityElement
17-LetterCombinationsOfAPhoneNumber
17-LetterCombinationsOfAPhoneNumber
1737-MaximumNestingDepthOfTheParentheses
1737-MaximumNestingDepthOfTheParentheses
18-4Sum/
version/
cpp
18-4Sum/
version/
cpp
18-4sum
18-4sum
1878-CheckIfArrayIsSortedAndRotated
1878-CheckIfArrayIsSortedAndRotated
189-RotateArray
189-RotateArray
1890-SumOfBeautyOfAllSubstrings
1890-SumOfBeautyOfAllSubstrings
19-RemoveNthNodeFromEndOfList
19-RemoveNthNodeFromEndOfList
1966-FrequencyOfTheMostFrequentElement
1966-FrequencyOfTheMostFrequentElement
2032-LargestOddNumberInString
2032-LargestOddNumberInString
204-CountPrimes
204-CountPrimes
2047-FindAPeakElementIi
2047-FindAPeakElementIi
205-IsomorphicStrings
205-IsomorphicStrings
2050-CountGoodNumbers
2050-CountGoodNumbers
206-ReverseLinkedList
206-ReverseLinkedList
216-CombinationSumIii
216-CombinationSumIii
22-GenerateParentheses
22-GenerateParentheses
2216-DeleteTheMiddleNodeOfALinkedList
2216-DeleteTheMiddleNodeOfALinkedList
2227-SumOfSubarrayRanges
2227-SumOfSubarrayRanges
225-ImplementStackUsingQueues
225-ImplementStackUsingQueues
2271-RearrangeArrayElementsBySign
2271-RearrangeArrayElementsBySign
229-MajorityElementII/
version/
cpp
229-MajorityElementII/
version/
cpp
229-MajorityElementIi
229-MajorityElementIi
231-PowerOfTwo
231-PowerOfTwo
232-ImplementQueueUsingStacks
232-ImplementQueueUsingStacks
2323-MinimumBitFlipsToConvertNumber
2323-MinimumBitFlipsToConvertNumber
234-PalindromeLinkedList
234-PalindromeLinkedList
237-DeleteNodeInALinkedList
237-DeleteNodeInALinkedList
240-SearchA2dMatrixIi
240-SearchA2dMatrixIi
242-ValidAnagram
242-ValidAnagram
25-ReverseNodesInKGroup
25-ReverseNodesInKGroup
26-RemoveDuplicatesFromSortedArray
26-RemoveDuplicatesFromSortedArray
260-SingleNumberIii
260-SingleNumberIii
268-MissingNumber
268-MissingNumber
2737-RowWithMaximumOnes
2737-RowWithMaximumOnes
283-MoveZeroes
283-MoveZeroes
29-DivideTwoIntegers
29-DivideTwoIntegers
31-NextPermutation
31-NextPermutation
328-OddEvenLinkedList
328-OddEvenLinkedList
33-SearchInRotatedSortedArray
33-SearchInRotatedSortedArray
338-CountingBits
338-CountingBits
34-FindFirstAndLastPositionOfElementInSortedArray
34-FindFirstAndLastPositionOfElementInSortedArray
3418-CountPairsThatFormACompleteDayIi
3418-CountPairsThatFormACompleteDayIi
3421-CountPairsThatFormACompleteDayI
3421-CountPairsThatFormACompleteDayI
3462-VowelsGameInAString
3462-VowelsGameInAString
3475-MinimumOperationsToMakeBinaryArrayElementsEqualToOneI
3475-MinimumOperationsToMakeBinaryArrayElementsEqualToOneI
3476-FindMinimumOperationsToMakeAllElementsDivisibleByThree
3476-FindMinimumOperationsToMakeAllElementsDivisibleByThree
3477-MinimumOperationsToMakeBinaryArrayElementsEqualToOneIi
3477-MinimumOperationsToMakeBinaryArrayElementsEqualToOneIi
3493-MaximumNumberOfOperationsToMoveOnesToTheEnd
3493-MaximumNumberOfOperationsToMoveOnesToTheEnd
35-SearchInsertPosition
35-SearchInsertPosition
3508-NumberOfBitChangesToMakeTwoIntegersEqual
3508-NumberOfBitChangesToMakeTwoIntegersEqual
3515-FindIfDigitGameCanBeWon
3515-FindIfDigitGameCanBeWon
3555-FinalArrayStateAfterKMultiplicationOperationsI
3555-FinalArrayStateAfterKMultiplicationOperationsI
39-CombinationSum
39-CombinationSum
4-MedianOfTwoSortedArrays
4-MedianOfTwoSortedArrays
40-CombinationSumIi
40-CombinationSumIi
402-RemoveKDigits
402-RemoveKDigits
410-SplitArrayLargestSum
410-SplitArrayLargestSum
424-LongestRepeatingCharacterReplacement
424-LongestRepeatingCharacterReplacement
451-SortCharactersByFrequency
451-SortCharactersByFrequency
455-AssignCookies
455-AssignCookies
48-RotateImage
48-RotateImage
485-MaxConsecutiveOnes
485-MaxConsecutiveOnes
493-ReversePairs
493-ReversePairs
496-NextGreaterElementI
496-NextGreaterElementI
5-LongestPalindromicSubstring
5-LongestPalindromicSubstring
View all files
About
Leetcode progress
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.