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 }}
Prajit-Rahul
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
Latest commit
History
1,148 Commits
1,148 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
10-regular-expression-matching
10-regular-expression-matching
100-same-tree
100-same-tree
1001-n-repeated-element-in-size-2n-array
1001-n-repeated-element-in-size-2n-array
101-symmetric-tree
101-symmetric-tree
1014-k-closest-points-to-origin
1014-k-closest-points-to-origin
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1020-longest-turbulent-subarray
1020-longest-turbulent-subarray
1023-time-based-key-value-store
1023-time-based-key-value-store
1029-vertical-order-traversal-of-a-binary-tree
1029-vertical-order-traversal-of-a-binary-tree
103-binary-tree-zigzag-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
1035-cousins-in-binary-tree
1035-cousins-in-binary-tree
1036-rotting-oranges
1036-rotting-oranges
1039-find-the-town-judge
1039-find-the-town-judge
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1046-max-consecutive-ones-iii
1046-max-consecutive-ones-iii
105-construct-binary-tree-from-preorder-and-inorder-traversal
105-construct-binary-tree-from-preorder-and-inorder-traversal
1050-construct-binary-search-tree-from-preorder-traversal
1050-construct-binary-search-tree-from-preorder-traversal
1054-complement-of-base-10-integer
1054-complement-of-base-10-integer
1056-capacity-to-ship-packages-within-d-days
1056-capacity-to-ship-packages-within-d-days
11-container-with-most-water
11-container-with-most-water
110-balanced-binary-tree
110-balanced-binary-tree
1127-last-stone-weight
1127-last-stone-weight
1130-last-stone-weight-ii
1130-last-stone-weight-ii
1146-greatest-common-divisor-of-strings
1146-greatest-common-divisor-of-strings
115-distinct-subsequences
115-distinct-subsequences
1171-shortest-path-in-binary-matrix
1171-shortest-path-in-binary-matrix
118-pascals-triangle
118-pascals-triangle
1184-car-pooling
1184-car-pooling
1185-find-in-mountain-array
1185-find-in-mountain-array
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
124-binary-tree-maximum-path-sum
124-binary-tree-maximum-path-sum
1240-stone-game-ii
1240-stone-game-ii
125-valid-palindrome
125-valid-palindrome
1250-longest-common-subsequence
1250-longest-common-subsequence
127-word-ladder
127-word-ladder
128-longest-consecutive-sequence
128-longest-consecutive-sequence
1284-four-divisors
1284-four-divisors
130-surrounded-regions
130-surrounded-regions
1304-longest-happy-string
1304-longest-happy-string
131-palindrome-partitioning
131-palindrome-partitioning
133-clone-graph
133-clone-graph
134-gas-station
134-gas-station
135-candy
135-candy
136-single-number
136-single-number
139-word-break
139-word-break
14-longest-common-prefix
14-longest-common-prefix
140-word-break-ii
140-word-break-ii
1408-find-the-smallest-divisor-given-a-threshold
1408-find-the-smallest-divisor-given-a-threshold
141-linked-list-cycle
141-linked-list-cycle
143-reorder-list
143-reorder-list
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1442-number-of-operations-to-make-network-connected
1442-number-of-operations-to-make-network-connected
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1450-delete-leaves-with-a-given-value
1450-delete-leaves-with-a-given-value
1476-count-negative-numbers-in-a-sorted-matrix
1476-count-negative-numbers-in-a-sorted-matrix
15-3sum
15-3sum
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
152-maximum-product-subarray
152-maximum-product-subarray
1527-number-of-ways-to-paint-n-3-grid
1527-number-of-ways-to-paint-n-3-grid
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1544-count-good-nodes-in-binary-tree
1544-count-good-nodes-in-binary-tree
155-min-stack
155-min-stack
1558-course-schedule-iv
1558-course-schedule-iv
1613-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
1613-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
162-find-peak-element
162-find-peak-element
1636-number-of-substrings-with-only-1s
1636-number-of-substrings-with-only-1s
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
168-excel-sheet-column-title
168-excel-sheet-column-title
169-majority-element
169-majority-element
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
1716-maximum-non-negative-product-in-a-matrix
1716-maximum-non-negative-product-in-a-matrix
1728-fancy-sequence
1728-fancy-sequence
1753-path-with-minimum-effort
1753-path-with-minimum-effort
18-4sum
18-4sum
1845-largest-submatrix-with-rearrangements
1845-largest-submatrix-with-rearrangements
189-rotate-array
189-rotate-array
1894-merge-strings-alternately
1894-merge-strings-alternately
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
190-reverse-bits
190-reverse-bits
191-number-of-1-bits
191-number-of-1-bits
1962-single-threaded-cpu
1962-single-threaded-cpu
1977-minimum-interval-to-include-each-query
1977-minimum-interval-to-include-each-query
198-house-robber
198-house-robber
199-binary-tree-right-side-view
199-binary-tree-right-side-view
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
2001-jump-game-vii
2001-jump-game-vii
201-bitwise-and-of-numbers-range
201-bitwise-and-of-numbers-range
2015-determine-whether-matrix-can-be-obtained-by-rotation
2015-determine-whether-matrix-can-be-obtained-by-rotation
202-happy-number
202-happy-number
2026-merge-triplets-to-form-target-triplet
2026-merge-triplets-to-form-target-triplet
2050-count-good-numbers
2050-count-good-numbers
2058-concatenation-of-array
2058-concatenation-of-array
206-reverse-linked-list
206-reverse-linked-list
207-course-schedule
207-course-schedule
View all files
About
C++ LeetCode solutions and ongoing problem-solving practice
Topics
algorithms
c-plus-plus
data-structures
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.