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 }}
s2sharpit
/
Solved-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
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
257 Commits
257 Commits
0001-two-sum
0001-two-sum
0005-longest-palindromic-substring
0005-longest-palindromic-substring
0009-palindrome-number
0009-palindrome-number
0013-roman-to-integer
0013-roman-to-integer
0014-longest-common-prefix
0014-longest-common-prefix
0026-remove-duplicates-from-sorted-array
0026-remove-duplicates-from-sorted-array
0033-search-in-rotated-sorted-array
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0035-search-insert-position
0041-first-missing-positive
0041-first-missing-positive
0053-maximum-subarray
0053-maximum-subarray
0054-spiral-matrix
0054-spiral-matrix
0055-jump-game
0055-jump-game
0059-spiral-matrix-ii
0059-spiral-matrix-ii
0062-unique-paths
0062-unique-paths
0066-plus-one
0066-plus-one
0069-sqrtx
0069-sqrtx
0073-set-matrix-zeroes
0073-set-matrix-zeroes
0075-sort-colors
0075-sort-colors
0081-search-in-rotated-sorted-array-ii
0081-search-in-rotated-sorted-array-ii
0092-reverse-linked-list-ii
0092-reverse-linked-list-ii
0118-pascals-triangle
0118-pascals-triangle
0135-candy
0135-candy
0138-copy-list-with-random-pointer
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0141-linked-list-cycle
0153-find-minimum-in-rotated-sorted-array
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0189-rotate-array
0198-house-robber
0198-house-robber
0229-majority-element-ii
0229-majority-element-ii
0238-product-of-array-except-self
0238-product-of-array-except-self
0278-first-bad-version
0278-first-bad-version
0287-find-the-duplicate-number
0287-find-the-duplicate-number
0332-reconstruct-itinerary
0332-reconstruct-itinerary
0338-counting-bits
0338-counting-bits
0349-intersection-of-two-arrays
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0350-intersection-of-two-arrays-ii
0367-valid-perfect-square
0367-valid-perfect-square
0374-guess-number-higher-or-lower
0374-guess-number-higher-or-lower
0377-combination-sum-iv
0377-combination-sum-iv
0389-find-the-difference
0389-find-the-difference
0392-is-subsequence
0392-is-subsequence
0410-split-array-largest-sum
0410-split-array-largest-sum
0436-find-right-interval
0436-find-right-interval
0441-arranging-coins
0441-arranging-coins
0442-find-all-duplicates-in-an-array
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0456-132-pattern
0456-132-pattern
0540-single-element-in-a-sorted-array
0540-single-element-in-a-sorted-array
0566-reshape-the-matrix
0566-reshape-the-matrix
0645-set-mismatch
0645-set-mismatch
0725-split-linked-list-in-parts
0725-split-linked-list-in-parts
0745-find-smallest-letter-greater-than-target
0745-find-smallest-letter-greater-than-target
0755-reach-a-number
0755-reach-a-number
0792-binary-search
0792-binary-search
0861-flipping-an-image
0861-flipping-an-image
0882-peak-index-in-a-mountain-array
0882-peak-index-in-a-mountain-array
0898-transpose-matrix
0898-transpose-matrix
0907-koko-eating-bananas
0907-koko-eating-bananas
0924-fair-candy-swap
0924-fair-candy-swap
0932-monotonic-array
0932-monotonic-array
0941-sort-array-by-parity
0941-sort-array-by-parity
1185-find-in-mountain-array
1185-find-in-mountain-array
1275-validate-binary-tree-nodes
1275-validate-binary-tree-nodes
1329-minimum-cost-to-move-chips-to-the-same-position
1329-minimum-cost-to-move-chips-to-the-same-position
1378-cells-with-odd-values-in-a-matrix
1378-cells-with-odd-values-in-a-matrix
1406-subtract-the-product-and-sum-of-digits-of-an-integer
1406-subtract-the-product-and-sum-of-digits-of-an-integer
1407-group-the-people-given-the-group-size-they-belong-to
1407-group-the-people-given-the-group-size-they-belong-to
1421-find-numbers-with-even-number-of-digits
1421-find-numbers-with-even-number-of-digits
1426-find-n-unique-integers-sum-up-to-zero
1426-find-n-unique-integers-sum-up-to-zero
1461-count-all-valid-pickup-and-delivery-options
1461-count-all-valid-pickup-and-delivery-options
1468-check-if-n-and-its-double-exist
1468-check-if-n-and-its-double-exist
1476-count-negative-numbers-in-a-sorted-matrix
1476-count-negative-numbers-in-a-sorted-matrix
1482-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number
1496-lucky-numbers-in-a-matrix
1496-lucky-numbers-in-a-matrix
1505-create-target-array-in-the-given-order
1505-create-target-array-in-the-given-order
1528-kids-with-the-greatest-number-of-candies
1528-kids-with-the-greatest-number-of-candies
1580-shuffle-the-array
1580-shuffle-the-array
1603-running-sum-of-1d-array
1603-running-sum-of-1d-array
1635-number-of-good-pairs
1635-number-of-good-pairs
1646-kth-missing-positive-number
1646-kth-missing-positive-number
1677-matrix-diagonal-sum
1677-matrix-diagonal-sum
1706-min-cost-to-connect-all-points
1706-min-cost-to-connect-all-points
1730-special-array-with-x-elements-greater-than-or-equal-x
1730-special-array-with-x-elements-greater-than-or-equal-x
1770-minimum-deletions-to-make-character-frequencies-unique
1770-minimum-deletions-to-make-character-frequencies-unique
1791-richest-customer-wealth
1791-richest-customer-wealth
1833-find-the-highest-altitude
1833-find-the-highest-altitude
1899-count-items-matching-a-rule
1899-count-items-matching-a-rule
1960-check-if-the-sentence-is-pangram
1960-check-if-the-sentence-is-pangram
1983-maximum-population-year
1983-maximum-population-year
2015-determine-whether-matrix-can-be-obtained-by-rotation
2015-determine-whether-matrix-can-be-obtained-by-rotation
2048-build-array-from-permutation
2048-build-array-from-permutation
2058-concatenation-of-array
2058-concatenation-of-array
2150-find-all-lonely-numbers-in-the-array
2150-find-all-lonely-numbers-in-the-array
2755-extra-characters-in-a-string
2755-extra-characters-in-a-string
README.md
README.md
View all files
Repository files navigation
README
More
items
leetcode
About
Collection of DSA questions to ace the coding interview!
leetcode.com/s2sharpit
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.