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
Type
/
to 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 }}
lakshitcodes
/
DSA_Problems
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
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
Files
Expand file tree
main
Breadcrumbs
DSA_Problems
/
LeetCode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
DSA_Problems
/
LeetCode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0001_TwoSum.cpp
0001_TwoSum.cpp
0002_AddTwoNumbers.cpp
0002_AddTwoNumbers.cpp
0003_LongestSubstringWithoutRepeatingCharacters.cpp
0003_LongestSubstringWithoutRepeatingCharacters.cpp
0004_MedianOfTwoSortedArrays.cpp
0004_MedianOfTwoSortedArrays.cpp
0005_LongestPalindromicSubstring.cpp
0005_LongestPalindromicSubstring.cpp
0007_ReverseInteger.cpp
0007_ReverseInteger.cpp
0008_StringToInteger.cpp
0008_StringToInteger.cpp
0009_PalindromeNumber.cpp
0009_PalindromeNumber.cpp
0010_RegularExpressionMatching.cpp
0010_RegularExpressionMatching.cpp
0013_RomanToInteger.cpp
0013_RomanToInteger.cpp
0014_LongestCommonPrefix.cpp
0014_LongestCommonPrefix.cpp
0015_3Sum.cpp
0015_3Sum.cpp
0017_LetterCombinationOfAPhoneNumber.cpp
0017_LetterCombinationOfAPhoneNumber.cpp
0019_RemoveNthNodeFromEndOfLinkedList.cpp
0019_RemoveNthNodeFromEndOfLinkedList.cpp
0020_ValidParentheses.cpp
0020_ValidParentheses.cpp
0021_MergeTwoSortedLists.cpp
0021_MergeTwoSortedLists.cpp
0022_GenerateParentheses.cpp
0022_GenerateParentheses.cpp
0023_MergeKSortedLists.cpp
0023_MergeKSortedLists.cpp
0025_ReverseNodesInKGroup.cpp
0025_ReverseNodesInKGroup.cpp
0026_RemoveDuplicatesFromSortedArray.cpp
0026_RemoveDuplicatesFromSortedArray.cpp
0029_DivideTwoIntegers.cpp
0029_DivideTwoIntegers.cpp
0031_NextPermutation.cpp
0031_NextPermutation.cpp
0036_ValidSudoku.cpp
0036_ValidSudoku.cpp
0037_SudokuSolver.cpp
0037_SudokuSolver.cpp
0038_CountAndSay.cpp
0038_CountAndSay.cpp
0039_CombinationSum.cpp
0039_CombinationSum.cpp
0040_CombinationSumII.cpp
0040_CombinationSumII.cpp
0042_TrappingRainWater.cpp
0042_TrappingRainWater.cpp
0044_WildcardMatching.cpp
0044_WildcardMatching.cpp
0045_JumpGameII.cpp
0045_JumpGameII.cpp
0046_Permutations.cpp
0046_Permutations.cpp
0048_RotateImage.cpp
0048_RotateImage.cpp
0050_Pow_X_N.cpp
0050_Pow_X_N.cpp
0051_NQueens.cpp
0051_NQueens.cpp
0053_MaximumSubarray.cpp
0053_MaximumSubarray.cpp
0055_JumpGame.cpp
0055_JumpGame.cpp
0056_MergeIntervals.cpp
0056_MergeIntervals.cpp
0057_InsertInterval.cpp
0057_InsertInterval.cpp
0060_PermutationSequence.cpp
0060_PermutationSequence.cpp
0061_RotateList.cpp
0061_RotateList.cpp
0062_UniquePaths.cpp
0062_UniquePaths.cpp
0063_UniquePathsII.cpp
0063_UniquePathsII.cpp
0064_MinimumPathSum.cpp
0064_MinimumPathSum.cpp
0070_ClimbingStairs.cpp
0070_ClimbingStairs.cpp
0072_EditDistance.cpp
0072_EditDistance.cpp
0073_SetMatrixZeroes.cpp
0073_SetMatrixZeroes.cpp
0074_SearchA2DMatrix.cpp
0074_SearchA2DMatrix.cpp
0075_SortColors.cpp
0075_SortColors.cpp
0076_MinimumWindowSubstring.cpp
0076_MinimumWindowSubstring.cpp
0077_Combinations.cpp
0077_Combinations.cpp
0078_Subsets.cpp
0078_Subsets.cpp
0079_WordSearch.cpp
0079_WordSearch.cpp
0084_LargestRectangleInHistogram.cpp
0084_LargestRectangleInHistogram.cpp
0085_MaximalRectangle.cpp
0085_MaximalRectangle.cpp
0088_MergeSortedArray.cpp
0088_MergeSortedArray.cpp
0090_SubsetsII.cpp
0090_SubsetsII.cpp
0094_BinaryTreeInorderTraversal.cpp
0094_BinaryTreeInorderTraversal.cpp
0097_InterleavingString.cpp
0097_InterleavingString.cpp
0098_ValidateBinarySearchTree.cpp
0098_ValidateBinarySearchTree.cpp
0099_RecoverBinarySearchTree.cpp
0099_RecoverBinarySearchTree.cpp
0100_SameTree.cpp
0100_SameTree.cpp
0102_BinaryTreeLevelOrderTraversal.cpp
0102_BinaryTreeLevelOrderTraversal.cpp
0103_BinaryTreeZigZagLevelOrderTraversal.cpp
0103_BinaryTreeZigZagLevelOrderTraversal.cpp
0104_MaximumDepthOfABinaryTree.cpp
0104_MaximumDepthOfABinaryTree.cpp
0105_ConstructBinaryTreeFromPreorderAndPostorderTraversal.cpp
0105_ConstructBinaryTreeFromPreorderAndPostorderTraversal.cpp
0106_ConstructBinaryTreeFromPostorderAndInorderTraversal.cpp
0106_ConstructBinaryTreeFromPostorderAndInorderTraversal.cpp
0110_BalancedBinaryTree.cpp
0110_BalancedBinaryTree.cpp
0114_FlattenBinaryTreeToLinkedList.cpp
0114_FlattenBinaryTreeToLinkedList.cpp
0115_DistinctSubsequences.cpp
0115_DistinctSubsequences.cpp
0118_PascalsTriangle.cpp
0118_PascalsTriangle.cpp
0120_Triangle.cpp
0120_Triangle.cpp
0121_BestTimeToBuyAndSellStock.cpp
0121_BestTimeToBuyAndSellStock.cpp
0122_BestTimeToBuyAndSellStock.cpp
0122_BestTimeToBuyAndSellStock.cpp
0123_BestTimeToBuyAndSellStockIII.cpp
0123_BestTimeToBuyAndSellStockIII.cpp
0124_BinaryTreeMaximumPathSum.cpp
0124_BinaryTreeMaximumPathSum.cpp
0126_WordLadderII.cpp
0126_WordLadderII.cpp
0127_WordLadder.cpp
0127_WordLadder.cpp
0128_LongestConsecutiveSubsequence.cpp
0128_LongestConsecutiveSubsequence.cpp
0130_SurroundedRegions.cpp
0130_SurroundedRegions.cpp
0131_PalindromePartitioning.cpp
0131_PalindromePartitioning.cpp
0132_PalindromePartitioningII.cpp
0132_PalindromePartitioningII.cpp
0135_Candy.cpp
0135_Candy.cpp
0136_SingleNumber.cpp
0136_SingleNumber.cpp
0137_SingleNumber2.cpp
0137_SingleNumber2.cpp
0138_CopyListWithRandomPointer.cpp
0138_CopyListWithRandomPointer.cpp
0139_WordBreak.cpp
0139_WordBreak.cpp
0141_LinkedListCycle.cpp
0141_LinkedListCycle.cpp
0142_LinkedListCycleII.cpp
0142_LinkedListCycleII.cpp
0144_BinaryTreePreorderTraversal.cpp
0144_BinaryTreePreorderTraversal.cpp
0145_BinaryTreePostorderTraversal.cpp
0145_BinaryTreePostorderTraversal.cpp
0146_LRUCache.cpp
0146_LRUCache.cpp
0148_SortList.cpp
0148_SortList.cpp
0151_ReverseWordsInAString.cpp
0151_ReverseWordsInAString.cpp
0155_GetMinStack.cpp
0155_GetMinStack.cpp
0160_IntersectionOfTwoLinkedList.cpp
0160_IntersectionOfTwoLinkedList.cpp
0162_FindPeakElement.cpp
0162_FindPeakElement.cpp
0165_CompareVersionNumbers.cpp
0165_CompareVersionNumbers.cpp
0165_FractionToRecurringDecimal.cpp
0165_FractionToRecurringDecimal.cpp
0169_MajorityElement.cpp
0169_MajorityElement.cpp
0173_BinarySearchTreeIterator.cpp
0173_BinarySearchTreeIterator.cpp
View all files
You can’t perform that action at this time.