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 }}
Upitt-IR-Lab
Algorithm-Linux
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Algorithm-Linux
/
Algorithm-Java
/
src
/
LeetCode
/
OnlineJudge
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Algorithm-Linux
/
Algorithm-Java
/
src
/
LeetCode
/
OnlineJudge
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Q100_SpiralMatrix.java
Q100_SpiralMatrix.java
Q101_SpiralMatrix2.java
Q101_SpiralMatrix2.java
Q102_Sqrt.java
Q102_Sqrt.java
Q103_StringToInteger.java
Q103_StringToInteger.java
Q104_Subsets.java
Q104_Subsets.java
Q105_Subsets2.java
Q105_Subsets2.java
Q106_SubstringWithConcatenation.java
Q106_SubstringWithConcatenation.java
Q107_SudokuSolver.java
Q107_SudokuSolver.java
Q108_SwapNodesInPairs.java
Q108_SwapNodesInPairs.java
Q109_SymmetricTree.java
Q109_SymmetricTree.java
Q10_BestTimeBuySellStock3.java
Q10_BestTimeBuySellStock3.java
Q110_TextJustification.java
Q110_TextJustification.java
Q111_TrappingRainWater.java
Q111_TrappingRainWater.java
Q112_Triangle.java
Q112_Triangle.java
Q113_TwoSum.java
Q113_TwoSum.java
Q114_UniqueBinarySearchTree.java
Q114_UniqueBinarySearchTree.java
Q115_UniqueBinarySearchTree2.java
Q115_UniqueBinarySearchTree2.java
Q116_UniquePath.java
Q116_UniquePath.java
Q117_UniquePath2.java
Q117_UniquePath2.java
Q118_ValidNumber.java
Q118_ValidNumber.java
Q119_ValidParentheses.java
Q119_ValidParentheses.java
Q11_BinaryTreeInOrderTraversal.java
Q11_BinaryTreeInOrderTraversal.java
Q120_ValidSudoku.java
Q120_ValidSudoku.java
Q121_ValidBinarySearchTree.java
Q121_ValidBinarySearchTree.java
Q122_WildcardMatching.java
Q122_WildcardMatching.java
Q123_WordSearch.java
Q123_WordSearch.java
Q124_ZigzagConversion.java
Q124_ZigzagConversion.java
Q12_BinaryTreeLevelOrderTraversal.java
Q12_BinaryTreeLevelOrderTraversal.java
Q13_BinaryTreeLevelOrderTraversal2.java
Q13_BinaryTreeLevelOrderTraversal2.java
Q14_MaximumPathSum.java
Q14_MaximumPathSum.java
Q15_BinaryTreeZigzagLevelOrderTraversal.java
Q15_BinaryTreeZigzagLevelOrderTraversal.java
Q16_ClimbingStairs.java
Q16_ClimbingStairs.java
Q17_CombinationSum.java
Q17_CombinationSum.java
Q18_CombinationSum2.java
Q18_CombinationSum2.java
Q19_Combinations.java
Q19_Combinations.java
Q1_3Sum.java
Q1_3Sum.java
Q20_ConstructBinaryTreeFromMidPostTraversal.java
Q20_ConstructBinaryTreeFromMidPostTraversal.java
Q21_ConstructBinaryTreeFromPreMidTraversal.java
Q21_ConstructBinaryTreeFromPreMidTraversal.java
Q22_ContainerWithMostWater.java
Q22_ContainerWithMostWater.java
Q23_ConvertArrayToBinaryTree.java
Q23_ConvertArrayToBinaryTree.java
Q24_ConvertLinkedListToBinaryTree.java
Q24_ConvertLinkedListToBinaryTree.java
Q25_CountAndSay.java
Q25_CountAndSay.java
Q26_DecodeWays.java
Q26_DecodeWays.java
Q27_DistinctSubsequences.java
Q27_DistinctSubsequences.java
Q28_DivideTwoIntegers.java
Q28_DivideTwoIntegers.java
Q29_EditDistance.java
Q29_EditDistance.java
Q2_3SumClosest.java
Q2_3SumClosest.java
Q30_FirstMissingPositive.java
Q30_FirstMissingPositive.java
Q31_FlattenBinaryTreeToLinkedList.java
Q31_FlattenBinaryTreeToLinkedList.java
Q32_GenerateParentheses.java
Q32_GenerateParentheses.java
Q33_GreyCode.java
Q33_GreyCode.java
Q34_StrStr.java
Q34_StrStr.java
Q35_InsertInterval.java
Q35_InsertInterval.java
Q36_IntegerToRoman.java
Q36_IntegerToRoman.java
Q37_InterleavingString.java
Q37_InterleavingString.java
Q38_JumpGame.java
Q38_JumpGame.java
Q39_JumpGame2.java
Q39_JumpGame2.java
Q3_4Sum.java
Q3_4Sum.java
Q40_LargestRectangleInHistogram.java
Q40_LargestRectangleInHistogram.java
Q41_LengthOfLastWord.java
Q41_LengthOfLastWord.java
Q42_LetterCombinationPhoneNum.java
Q42_LetterCombinationPhoneNum.java
Q43_LongestCommonPrefix.java
Q43_LongestCommonPrefix.java
Q44_LongestPalindromicSub.java
Q44_LongestPalindromicSub.java
Q45_LongestSubWithoutRepeat.java
Q45_LongestSubWithoutRepeat.java
Q46_LongestValidParentheses.java
Q46_LongestValidParentheses.java
Q47_MaxRectangle.java
Q47_MaxRectangle.java
Q48_MaxDepthOfBinaryTree.java
Q48_MaxDepthOfBinaryTree.java
Q49_MaxSubarray.java
Q49_MaxSubarray.java
Q4_AddBinary.java
Q4_AddBinary.java
Q50_MedianOfTwoSortedArray.java
Q50_MedianOfTwoSortedArray.java
Q51_MergeIntervals.java
Q51_MergeIntervals.java
Q52_MergeKSortedList.java
Q52_MergeKSortedList.java
Q53_MergeSortedArray.java
Q53_MergeSortedArray.java
Q54_MergeTwoSortedLists.java
Q54_MergeTwoSortedLists.java
Q55_MinDepthBinaryTree.java
Q55_MinDepthBinaryTree.java
Q56_MinPathSum.java
Q56_MinPathSum.java
Q57_MinWindowSubString.java
Q57_MinWindowSubString.java
Q58_MultiplyString.java
Q58_MultiplyString.java
Q59_NQueen.java
Q59_NQueen.java
Q5_AddTwoNumber.java
Q5_AddTwoNumber.java
Q60_NQueen2.java
Q60_NQueen2.java
Q61_NextPermutation.java
Q61_NextPermutation.java
Q62_PalindromeNumber.java
Q62_PalindromeNumber.java
Q63_PartitionList.java
Q63_PartitionList.java
Q64_PascalTriangle.java
Q64_PascalTriangle.java
Q65_PascalTriangle2.java
Q65_PascalTriangle2.java
Q66_PathSum.java
Q66_PathSum.java
Q67_PathSum2.java
Q67_PathSum2.java
Q68_PermutationSequence.java
Q68_PermutationSequence.java
Q69_Permutation.java
Q69_Permutation.java
Q6_Anagrams.java
Q6_Anagrams.java
Q70_Permutation2.java
Q70_Permutation2.java
Q71_PlusOne.java
Q71_PlusOne.java
Q72_PopulateNextRightPointerEachNode.java
Q72_PopulateNextRightPointerEachNode.java
Q73_PopulateNextRightPointerEachNode2.java
Q73_PopulateNextRightPointerEachNode2.java
Q74_Pow.java
Q74_Pow.java
Q75_RecoverBinarySearchTree.java
Q75_RecoverBinarySearchTree.java
Q76_RegularExpressionMatching.java
Q76_RegularExpressionMatching.java
Q77_RemoveDuplicateInSortedArray.java
Q77_RemoveDuplicateInSortedArray.java
Q78_RemoveDuplicateInSortedArray2.java
Q78_RemoveDuplicateInSortedArray2.java
View all files
You can’t perform that action at this time.