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 }}
rrahul-1
/
LeetCode-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
Latest commit
History
732 Commits
732 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
1004-max-consecutive-ones-iii
1004-max-consecutive-ones-iii
1007-minimum-domino-rotations-for-equal-row
1007-minimum-domino-rotations-for-equal-row
101-symmetric-tree
101-symmetric-tree
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1029-two-city-scheduling
1029-two-city-scheduling
103-binary-tree-zigzag-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1046-last-stone-weight
1046-last-stone-weight
105-construct-binary-tree-from-preorder-and-inorder-traversal
105-construct-binary-tree-from-preorder-and-inorder-traversal
107-binary-tree-level-order-traversal-ii
107-binary-tree-level-order-traversal-ii
1081-smallest-subsequence-of-distinct-characters
1081-smallest-subsequence-of-distinct-characters
11-container-with-most-water
11-container-with-most-water
110-balanced-binary-tree
110-balanced-binary-tree
111-minimum-depth-of-binary-tree
111-minimum-depth-of-binary-tree
112-path-sum
112-path-sum
113-path-sum-ii
113-path-sum-ii
116-populating-next-right-pointers-in-each-node
116-populating-next-right-pointers-in-each-node
117-populating-next-right-pointers-in-each-node-ii
117-populating-next-right-pointers-in-each-node-ii
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
1249-minimum-remove-to-make-valid-parentheses
1249-minimum-remove-to-make-valid-parentheses
125-valid-palindrome
125-valid-palindrome
127-word-ladder
127-word-ladder
1288-remove-covered-intervals
1288-remove-covered-intervals
133-clone-graph
133-clone-graph
1337-the-k-weakest-rows-in-a-matrix
1337-the-k-weakest-rows-in-a-matrix
1359-count-all-valid-pickup-and-delivery-options
1359-count-all-valid-pickup-and-delivery-options
136-single-number
136-single-number
138-copy-list-with-random-pointer
138-copy-list-with-random-pointer
14-longest-common-prefix
14-longest-common-prefix
141-linked-list-cycle
141-linked-list-cycle
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1441-build-an-array-with-stack-operations
1441-build-an-array-with-stack-operations
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
148-sort-list
148-sort-list
1528-shuffle-string
1528-shuffle-string
1592-rearrange-spaces-between-words
1592-rearrange-spaces-between-words
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1630-arithmetic-subarrays
1630-arithmetic-subarrays
1636-sort-array-by-increasing-frequency
1636-sort-array-by-increasing-frequency
1663-smallest-string-with-a-given-numeric-value
1663-smallest-string-with-a-given-numeric-value
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
1675-minimize-deviation-in-array
1675-minimize-deviation-in-array
169-majority-element
169-majority-element
171-excel-sheet-column-number
171-excel-sheet-column-number
1721-swapping-nodes-in-a-linked-list
1721-swapping-nodes-in-a-linked-list
173-binary-search-tree-iterator
173-binary-search-tree-iterator
179-largest-number
179-largest-number
199-binary-tree-right-side-view
199-binary-tree-right-side-view
1993-operations-on-tree
1993-operations-on-tree
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
2009-minimum-number-of-operations-to-make-array-continuous
2009-minimum-number-of-operations-to-make-array-continuous
2022-convert-1d-array-into-2d-array
2022-convert-1d-array-into-2d-array
203-remove-linked-list-elements
203-remove-linked-list-elements
206-reverse-linked-list
206-reverse-linked-list
207-course-schedule
207-course-schedule
208-implement-trie-prefix-tree
208-implement-trie-prefix-tree
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
2095-delete-the-middle-node-of-a-linked-list
2095-delete-the-middle-node-of-a-linked-list
21-merge-two-sorted-lists
21-merge-two-sorted-lists
210-course-schedule-ii
210-course-schedule-ii
2108-find-first-palindromic-string-in-the-array
2108-find-first-palindromic-string-in-the-array
217-contains-duplicate
217-contains-duplicate
226-invert-binary-tree
226-invert-binary-tree
228-summary-ranges
228-summary-ranges
230-kth-smallest-element-in-a-bst
230-kth-smallest-element-in-a-bst
235-lowest-common-ancestor-of-a-binary-search-tree
235-lowest-common-ancestor-of-a-binary-search-tree
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
238-product-of-array-except-self
238-product-of-array-except-self
24-swap-nodes-in-pairs
24-swap-nodes-in-pairs
257-binary-tree-paths
257-binary-tree-paths
258-add-digits
258-add-digits
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
268-missing-number
268-missing-number
287-find-the-duplicate-number
287-find-the-duplicate-number
303-range-sum-query-immutable
303-range-sum-query-immutable
31-next-permutation
31-next-permutation
316-remove-duplicate-letters
316-remove-duplicate-letters
33-search-in-rotated-sorted-array
33-search-in-rotated-sorted-array
338-counting-bits
338-counting-bits
344-reverse-string
344-reverse-string
347-top-k-frequent-elements
347-top-k-frequent-elements
350-intersection-of-two-arrays-ii
350-intersection-of-two-arrays-ii
380-insert-delete-getrandom-o1
380-insert-delete-getrandom-o1
389-find-the-difference
389-find-the-difference
39-combination-sum
39-combination-sum
392-is-subsequence
392-is-subsequence
4-median-of-two-sorted-arrays
4-median-of-two-sorted-arrays
402-remove-k-digits
402-remove-k-digits
410-split-array-largest-sum
410-split-array-largest-sum
413-arithmetic-slices
413-arithmetic-slices
414-third-maximum-number
414-third-maximum-number
424-longest-repeating-character-replacement
424-longest-repeating-character-replacement
437-path-sum-iii
437-path-sum-iii
442-find-all-duplicates-in-an-array
442-find-all-duplicates-in-an-array
496-next-greater-element-i
496-next-greater-element-i
515-find-largest-value-in-each-tree-row
515-find-largest-value-in-each-tree-row
View all files
Repository files navigation
README
More
items
LeetCode Python solutions
Collection of python answers for LeetCode questions
About
Collections of LeetCode problem solutions
github.com/r-rahul1/LeetCode
Topics
algorithm
algorithms-and-data-structures
data-structures
dsa
dsa-algorithm
dsa-practice
leetcode
leetcode-practice
leetcode-python
leetcode-python-solutions
leetcode-python3
leetcode-python3-solutions
leetcode-questions
leetcode-solutions
python
python-solutions
solutions
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.