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
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
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
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.