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 }}
RiddhiSharmaa
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
Solutions to problems I solve on 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
1,408 Commits
1,408 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
100-same-tree
100-same-tree
1013-fibonacci-number
1013-fibonacci-number
1014-k-closest-points-to-origin
1014-k-closest-points-to-origin
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
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
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
105-construct-binary-tree-from-preorder-and-inorder-traversal
105-construct-binary-tree-from-preorder-and-inorder-traversal
106-construct-binary-tree-from-inorder-and-postorder-traversal
106-construct-binary-tree-from-inorder-and-postorder-traversal
1078-remove-outermost-parentheses
1078-remove-outermost-parentheses
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
110-balanced-binary-tree
110-balanced-binary-tree
112-path-sum
112-path-sum
1127-last-stone-weight
1127-last-stone-weight
1128-remove-all-adjacent-duplicates-in-string
1128-remove-all-adjacent-duplicates-in-string
113-path-sum-ii
113-path-sum-ii
114-flatten-binary-tree-to-linked-list
114-flatten-binary-tree-to-linked-list
115-distinct-subsequences
115-distinct-subsequences
116-populating-next-right-pointers-in-each-node
116-populating-next-right-pointers-in-each-node
118-pascals-triangle
118-pascals-triangle
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
1218-lowest-common-ancestor-of-deepest-leaves
1218-lowest-common-ancestor-of-deepest-leaves
122-best-time-to-buy-and-sell-stock-ii
122-best-time-to-buy-and-sell-stock-ii
123-best-time-to-buy-and-sell-stock-iii
123-best-time-to-buy-and-sell-stock-iii
124-binary-tree-maximum-path-sum
124-binary-tree-maximum-path-sum
1250-longest-common-subsequence
1250-longest-common-subsequence
127-word-ladder
127-word-ladder
128-longest-consecutive-sequence
128-longest-consecutive-sequence
1285-balance-a-binary-search-tree
1285-balance-a-binary-search-tree
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
13-roman-to-integer
13-roman-to-integer
130-surrounded-regions
130-surrounded-regions
131-palindrome-partitioning
131-palindrome-partitioning
132-palindrome-partitioning-ii
132-palindrome-partitioning-ii
1325-path-with-maximum-probability
1325-path-with-maximum-probability
133-clone-graph
133-clone-graph
134-gas-station
134-gas-station
1352-maximum-profit-in-job-scheduling
1352-maximum-profit-in-job-scheduling
136-single-number
136-single-number
138-copy-list-with-random-pointer
138-copy-list-with-random-pointer
1381-maximum-score-words-formed-by-letters
1381-maximum-score-words-formed-by-letters
139-word-break
139-word-break
14-longest-common-prefix
14-longest-common-prefix
1402-count-square-submatrices-with-all-ones
1402-count-square-submatrices-with-all-ones
141-linked-list-cycle
141-linked-list-cycle
142-linked-list-cycle-ii
142-linked-list-cycle-ii
143-reorder-list
143-reorder-list
1437-minimum-insertion-steps-to-make-a-string-palindrome
1437-minimum-insertion-steps-to-make-a-string-palindrome
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
146-lru-cache
146-lru-cache
1468-check-if-n-and-its-double-exist
1468-check-if-n-and-its-double-exist
15-3sum
15-3sum
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
151-reverse-words-in-a-string
151-reverse-words-in-a-string
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
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
155-min-stack
155-min-stack
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
1661-minimum-number-of-vertices-to-reach-all-nodes
1661-minimum-number-of-vertices-to-reach-all-nodes
1666-make-the-string-great
1666-make-the-string-great
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
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
1738-maximal-network-rank
1738-maximal-network-rank
1753-path-with-minimum-effort
1753-path-with-minimum-effort
1761-count-sorted-vowel-strings
1761-count-sorted-vowel-strings
18-4sum
18-4sum
1878-check-if-array-is-sorted-and-rotated
1878-check-if-array-is-sorted-and-rotated
188-best-time-to-buy-and-sell-stock-iv
188-best-time-to-buy-and-sell-stock-iv
189-rotate-array
189-rotate-array
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
1916-find-center-of-star-graph
1916-find-center-of-star-graph
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
1993-sum-of-all-subset-xor-totals
1993-sum-of-all-subset-xor-totals
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
202-happy-number
202-happy-number
2026-merge-triplets-to-form-target-triplet
2026-merge-triplets-to-form-target-triplet
205-isomorphic-strings
205-isomorphic-strings
206-reverse-linked-list
206-reverse-linked-list
207-course-schedule
207-course-schedule
21-merge-two-sorted-lists
21-merge-two-sorted-lists
213-house-robber-ii
213-house-robber-ii
2139-detect-squares
2139-detect-squares
215-kth-largest-element-in-an-array
215-kth-largest-element-in-an-array
2174-next-greater-numerically-balanced-number
2174-next-greater-numerically-balanced-number
View all files
About
Solutions to problems I solve on 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.