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 }}
ravening
/
AlgorithmsAndDataStructures
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
4
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
AlgorithmsAndDataStructures
/
src
/
Arrays
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
AlgorithmsAndDataStructures
/
src
/
Arrays
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
CelebrityProblem.java
CelebrityProblem.java
CoinChangeDP.java
CoinChangeDP.java
CollectMaxPointsTwoTraversal.java
CollectMaxPointsTwoTraversal.java
CommonArrayElements.java
CommonArrayElements.java
CourseSchedule.java
CourseSchedule.java
DataStructure.java
DataStructure.java
DelayedProjects.java
DelayedProjects.java
DistanceBetweenIslands.java
DistanceBetweenIslands.java
DuplicateElement.java
DuplicateElement.java
DuplicateZeros.java
DuplicateZeros.java
EvenOddPositions.java
EvenOddPositions.java
FractionalKnapsack.java
FractionalKnapsack.java
FruitBasket.java
FruitBasket.java
FruitIntoBasket.java
FruitIntoBasket.java
GoldMine.java
GoldMine.java
GoldMining.java
GoldMining.java
IntersectionOfArray.java
IntersectionOfArray.java
JobScheduling.java
JobScheduling.java
JumpGame.java
JumpGame.java
KClosestElements.java
KClosestElements.java
KLargestElements.java
KLargestElements.java
KSortedArray.java
KSortedArray.java
Knapsack.java
Knapsack.java
KnightToTarget.java
KnightToTarget.java
LCIS.java
LCIS.java
LargestNumberKSwaps.java
LargestNumberKSwaps.java
LeetCode1011.java
LeetCode1011.java
LeetCode1834.java
LeetCode1834.java
LeetCode1882.java
LeetCode1882.java
LeetCode983.java
LeetCode983.java
LongestConsecutiveSequence.java
LongestConsecutiveSequence.java
LongestIncreasingPath.java
LongestIncreasingPath.java
LongestIncreasingSubsequence.java
LongestIncreasingSubsequence.java
LongestIncrementalSubsequence.java
LongestIncrementalSubsequence.java
LongestPath.java
LongestPath.java
LongestSubSeg.java
LongestSubSeg.java
LongestSubarraySumK.java
LongestSubarraySumK.java
MInimumCoinDP.java
MInimumCoinDP.java
MajorityElement.java
MajorityElement.java
MakeItinerary.java
MakeItinerary.java
MaxContiguousSubArraySum.java
MaxContiguousSubArraySum.java
MaxDistBetweenBalls.java
MaxDistBetweenBalls.java
MaxElementSlidingWindow.java
MaxElementSlidingWindow.java
MaxPackageWright.java
MaxPackageWright.java
MaxProfit.java
MaxProfit.java
MaxProfitSellingStocks.java
MaxProfitSellingStocks.java
MaxSizeSubMatrix.java
MaxSizeSubMatrix.java
MaxSumAfter1Operation.java
MaxSumAfter1Operation.java
Maxcoins.java
Maxcoins.java
MaxdisjointIntervals.java
MaxdisjointIntervals.java
MeetingScheduler.java
MeetingScheduler.java
Merge3Arrays.java
Merge3Arrays.java
MergeAccounts.java
MergeAccounts.java
MergeIntervals.java
MergeIntervals.java
MergeKSortedArrays.java
MergeKSortedArrays.java
MergeSort.java
MergeSort.java
MergeTwoSortedArrays.java
MergeTwoSortedArrays.java
MinHeapToMaxHeap.java
MinHeapToMaxHeap.java
MinPathSum.java
MinPathSum.java
MinStepsToEnd.java
MinStepsToEnd.java
MinimumCellsDestination.java
MinimumCellsDestination.java
MinimumCostChocolate.java
MinimumCostChocolate.java
MinimumPlatforms.java
MinimumPlatforms.java
MobileKeypad.java
MobileKeypad.java
MsxProductSubsequence.java
MsxProductSubsequence.java
NQueens.java
NQueens.java
NestedListWeightSum.java
NestedListWeightSum.java
NextGreaterElement.java
NextGreaterElement.java
NextGreaterFrequency.java
NextGreaterFrequency.java
NumberOfIslands.java
NumberOfIslands.java
PackageAssignment.java
PackageAssignment.java
PathWithMaxGold.java
PathWithMaxGold.java
PreviousSmallerElement.java
PreviousSmallerElement.java
ProductExceptSelf.java
ProductExceptSelf.java
QuickSortArray.java
QuickSortArray.java
RotateMatrixAntiClockWise.java
RotateMatrixAntiClockWise.java
RottenOranges.java
RottenOranges.java
SegregateEvenOddNumbers.java
SegregateEvenOddNumbers.java
ShortestDistFromAllBuilding.java
ShortestDistFromAllBuilding.java
ShortestPath.java
ShortestPath.java
SnakeAndLadder.java
SnakeAndLadder.java
SortA1ByA2.java
SortA1ByA2.java
SortElements.java
SortElements.java
StockSpan.java
StockSpan.java
SubarrayProductLessK.java
SubarrayProductLessK.java
SubarraySumEqualK.java
SubarraySumEqualK.java
SubsequentSum.java
SubsequentSum.java
TopKFrequent.java
TopKFrequent.java
TotalPaths.java
TotalPaths.java
TrapRainWater.java
TrapRainWater.java
UnboundedKnapsack.java
UnboundedKnapsack.java
UnionFind.java
UnionFind.java
UniquePath.java
UniquePath.java
ValidSudoku.java
ValidSudoku.java
WordSearch.java
WordSearch.java
WordSearch2.java
WordSearch2.java
countInversions.java
countInversions.java
View all files
You can’t perform that action at this time.