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
See 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 }}
Paras-x
DSA
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
DSA
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
LeetCode
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
547 Commits
547 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
1028-interval-list-intersections
1028-interval-list-intersections
1031-add-to-array-form-of-integer
1031-add-to-array-form-of-integer
1036-rotting-oranges
1036-rotting-oranges
1046-max-consecutive-ones-iii
1046-max-consecutive-ones-iii
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
11-container-with-most-water
11-container-with-most-water
1128-remove-all-adjacent-duplicates-in-string
1128-remove-all-adjacent-duplicates-in-string
1137-height-checker
1137-height-checker
118-pascals-triangle
118-pascals-triangle
119-pascals-triangle-ii
119-pascals-triangle-ii
1195-distribute-candies-to-people
1195-distribute-candies-to-people
12-integer-to-roman
12-integer-to-roman
1205-defanging-an-ip-address
1205-defanging-an-ip-address
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
122-best-time-to-buy-and-sell-stock-ii
122-best-time-to-buy-and-sell-stock-ii
13-roman-to-integer
13-roman-to-integer
1306-minimum-absolute-difference
1306-minimum-absolute-difference
1320-remove-all-adjacent-duplicates-in-string-ii
1320-remove-all-adjacent-duplicates-in-string-ii
136-single-number
136-single-number
137-single-number-ii
137-single-number-ii
14-longest-common-prefix
14-longest-common-prefix
1406-subtract-the-product-and-sum-of-digits-of-an-integer
1406-subtract-the-product-and-sum-of-digits-of-an-integer
1421-find-numbers-with-even-number-of-digits
1421-find-numbers-with-even-number-of-digits
1427-all-elements-in-two-binary-search-trees
1427-all-elements-in-two-binary-search-trees
1444-number-of-steps-to-reduce-a-number-to-zero
1444-number-of-steps-to-reduce-a-number-to-zero
1448-maximum-69-number
1448-maximum-69-number
1468-check-if-n-and-its-double-exist
1468-check-if-n-and-its-double-exist
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
152-maximum-product-subarray
152-maximum-product-subarray
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1574-maximum-product-of-two-elements-in-an-array
1574-maximum-product-of-two-elements-in-an-array
1586-longest-subarray-of-1s-after-deleting-one-element
1586-longest-subarray-of-1s-after-deleting-one-element
1610-xor-operation-in-an-array
1610-xor-operation-in-an-array
162-find-peak-element
162-find-peak-element
164-maximum-gap
164-maximum-gap
1646-kth-missing-positive-number
1646-kth-missing-positive-number
1656-count-good-triplets
1656-count-good-triplets
1661-minimum-number-of-vertices-to-reach-all-nodes
1661-minimum-number-of-vertices-to-reach-all-nodes
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
17-letter-combinations-of-a-phone-number
17-letter-combinations-of-a-phone-number
1706-min-cost-to-connect-all-points
1706-min-cost-to-connect-all-points
1732-minimum-one-bit-operations-to-make-integers-zero
1732-minimum-one-bit-operations-to-make-integers-zero
1737-maximum-nesting-depth-of-the-parentheses
1737-maximum-nesting-depth-of-the-parentheses
1742-widest-vertical-area-between-two-points-containing-no-points
1742-widest-vertical-area-between-two-points-containing-no-points
1889-check-if-number-is-a-sum-of-powers-of-three
1889-check-if-number-is-a-sum-of-powers-of-three
1894-merge-strings-alternately
1894-merge-strings-alternately
1916-find-center-of-star-graph
1916-find-center-of-star-graph
1951-find-the-winner-of-the-circular-game
1951-find-the-winner-of-the-circular-game
1961-maximum-ice-cream-bars
1961-maximum-ice-cream-bars
1965-sum-of-digits-in-base-k
1965-sum-of-digits-in-base-k
200-number-of-islands
200-number-of-islands
2037-count-square-sum-triples
2037-count-square-sum-triples
205-isomorphic-strings
205-isomorphic-strings
2058-concatenation-of-array
2058-concatenation-of-array
207-course-schedule
207-course-schedule
2083-three-divisors
2083-three-divisors
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
210-course-schedule-ii
210-course-schedule-ii
2106-find-greatest-common-divisor-of-array
2106-find-greatest-common-divisor-of-array
2121-find-if-path-exists-in-graph
2121-find-if-path-exists-in-graph
2122-count-special-quadruplets
2122-count-special-quadruplets
213-house-robber-ii
213-house-robber-ii
2134-maximize-the-confusion-of-an-exam
2134-maximize-the-confusion-of-an-exam
2148-minimum-number-of-moves-to-seat-everyone
2148-minimum-number-of-moves-to-seat-everyone
215-kth-largest-element-in-an-array
215-kth-largest-element-in-an-array
221-maximal-square
221-maximal-square
2210-find-target-indices-after-sorting-array
2210-find-target-indices-after-sorting-array
2215-finding-3-digit-even-numbers
2215-finding-3-digit-even-numbers
2238-a-number-after-a-double-reversal
2238-a-number-after-a-double-reversal
224-basic-calculator
224-basic-calculator
2248-minimum-cost-of-buying-candies-with-discount
2248-minimum-cost-of-buying-candies-with-discount
2265-partition-array-according-to-given-pivot
2265-partition-array-according-to-given-pivot
2274-keep-multiplying-found-values-by-two
2274-keep-multiplying-found-values-by-two
2283-sort-even-and-odd-indices-independently
2283-sort-even-and-odd-indices-independently
2288-count-operations-to-obtain-zero
2288-count-operations-to-obtain-zero
2298-count-integers-with-even-digit-sum
2298-count-integers-with-even-digit-sum
230-kth-smallest-element-in-a-bst
230-kth-smallest-element-in-a-bst
238-product-of-array-except-self
238-product-of-array-except-self
2383-add-two-integers
2383-add-two-integers
2427-first-letter-to-appear-twice
2427-first-letter-to-appear-twice
2470-removing-stars-from-a-string
2470-removing-stars-from-a-string
2481-strictly-palindromic-number
2481-strictly-palindromic-number
2491-smallest-even-multiple
2491-smallest-even-multiple
2502-sort-the-people
2502-sort-the-people
2507-number-of-common-factors
2507-number-of-common-factors
2525-count-number-of-distinct-integers-after-reverse-operations
2525-count-number-of-distinct-integers-after-reverse-operations
2551-apply-operations-to-an-array
2551-apply-operations-to-an-array
2556-convert-the-temperature
2556-convert-the-temperature
2561-number-of-distinct-averages
2561-number-of-distinct-averages
2566-number-of-unequal-triplets-in-array
2566-number-of-unequal-triplets-in-array
2575-minimum-cuts-to-divide-a-circle
2575-minimum-cuts-to-divide-a-circle
258-add-digits
258-add-digits
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
260-single-number-iii
260-single-number-iii
2608-count-the-digits-that-divide-a-number
2608-count-the-digits-that-divide-a-number
2624-difference-between-element-sum-and-digit-sum-of-an-array
2624-difference-between-element-sum-and-digit-sum-of-an-array
2630-alternating-digit-sum
2630-alternating-digit-sum
2639-separate-the-digits-in-an-array
2639-separate-the-digits-in-an-array
View all files
About
LeetCode
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.