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 }}
pratul2789
/
Leetcode-Solutions
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
352 Commits
352 Commits
0200-number-of-islands
0200-number-of-islands
0291-word-pattern-ii
0291-word-pattern-ii
0339-nested-list-weight-sum
0339-nested-list-weight-sum
0408-valid-word-abbreviation
0408-valid-word-abbreviation
0426-convert-binary-search-tree-to-sorted-doubly-linked-list
0426-convert-binary-search-tree-to-sorted-doubly-linked-list
0430-flatten-a-multilevel-doubly-linked-list
0430-flatten-a-multilevel-doubly-linked-list
0547-number-of-provinces
0547-number-of-provinces
0733-flood-fill
0733-flood-fill
0785-is-graph-bipartite
0785-is-graph-bipartite
0797-all-paths-from-source-to-target
0797-all-paths-from-source-to-target
0938-range-sum-of-bst
0938-range-sum-of-bst
101-symmetric-tree
101-symmetric-tree
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1041-robot-bounded-in-circle
1041-robot-bounded-in-circle
1137-n-th-tribonacci-number
1137-n-th-tribonacci-number
1144-decrease-elements-to-make-array-zigzag
1144-decrease-elements-to-make-array-zigzag
1162-as-far-from-land-as-possible
1162-as-far-from-land-as-possible
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
1249-minimum-remove-to-make-valid-parentheses
1249-minimum-remove-to-make-valid-parentheses
133-clone-graph
133-clone-graph
1386-cinema-seat-allocation
1386-cinema-seat-allocation
1481-least-number-of-unique-integers-after-k-removals
1481-least-number-of-unique-integers-after-k-removals
1485-clone-binary-tree-with-random-pointer
1485-clone-binary-tree-with-random-pointer
155-min-stack
155-min-stack
1580-put-boxes-into-the-warehouse-ii
1580-put-boxes-into-the-warehouse-ii
1628-design-an-expression-tree-with-evaluate-function
1628-design-an-expression-tree-with-evaluate-function
1656-design-an-ordered-stream
1656-design-an-ordered-stream
1706-where-will-the-ball-fall
1706-where-will-the-ball-fall
1730-shortest-path-to-get-food
1730-shortest-path-to-get-food
1762-buildings-with-an-ocean-view
1762-buildings-with-an-ocean-view
179-largest-number
179-largest-number
1812-determine-color-of-a-chessboard-square
1812-determine-color-of-a-chessboard-square
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
198-house-robber
198-house-robber
20-valid-parentheses
20-valid-parentheses
2007-find-original-array-from-doubled-array
2007-find-original-array-from-doubled-array
2038-remove-colored-pieces-if-both-neighbors-are-the-same-color
2038-remove-colored-pieces-if-both-neighbors-are-the-same-color
2039-the-time-when-the-network-becomes-idle
2039-the-time-when-the-network-becomes-idle
206-reverse-linked-list
206-reverse-linked-list
2096-step-by-step-directions-from-a-binary-tree-node-to-another
2096-step-by-step-directions-from-a-binary-tree-node-to-another
21-merge-two-sorted-lists
21-merge-two-sorted-lists
210-course-schedule-ii
210-course-schedule-ii
2115-find-all-possible-recipes-from-given-supplies
2115-find-all-possible-recipes-from-given-supplies
2196-create-binary-tree-from-descriptions
2196-create-binary-tree-from-descriptions
226-invert-binary-tree
226-invert-binary-tree
2265-count-nodes-equal-to-average-of-subtree
2265-count-nodes-equal-to-average-of-subtree
25-reverse-nodes-in-k-group
25-reverse-nodes-in-k-group
259-3sum-smaller
259-3sum-smaller
297-serialize-and-deserialize-binary-tree
297-serialize-and-deserialize-binary-tree
337-house-robber-iii
337-house-robber-iii
370-range-addition
370-range-addition
417-pacific-atlantic-water-flow
417-pacific-atlantic-water-flow
538-convert-bst-to-greater-tree
538-convert-bst-to-greater-tree
545-boundary-of-binary-tree
545-boundary-of-binary-tree
572-subtree-of-another-tree
572-subtree-of-another-tree
605-can-place-flowers
605-can-place-flowers
669-trim-a-binary-search-tree
669-trim-a-binary-search-tree
678-valid-parenthesis-string
678-valid-parenthesis-string
680-valid-palindrome-ii
680-valid-palindrome-ii
682-baseball-game
682-baseball-game
694-number-of-distinct-islands
694-number-of-distinct-islands
70-climbing-stairs
70-climbing-stairs
73-set-matrix-zeroes
73-set-matrix-zeroes
743-network-delay-time
743-network-delay-time
746-min-cost-climbing-stairs
746-min-cost-climbing-stairs
787-cheapest-flights-within-k-stops
787-cheapest-flights-within-k-stops
817-linked-list-components
817-linked-list-components
841-keys-and-rooms
841-keys-and-rooms
864-shortest-path-to-get-all-keys
864-shortest-path-to-get-all-keys
935-knight-dialer
935-knight-dialer
94-binary-tree-inorder-traversal
94-binary-tree-inorder-traversal
954-array-of-doubled-pairs
954-array-of-doubled-pairs
98-validate-binary-search-tree
98-validate-binary-search-tree
find-first-and-last-position-of-element-in-sorted-array
find-first-and-last-position-of-element-in-sorted-array
house-robber
house-robber
maximum-score-from-performing-multiplication-operations
maximum-score-from-performing-multiplication-operations
min-cost-climbing-stairs
min-cost-climbing-stairs
n-th-tribonacci-number
n-th-tribonacci-number
subarray-product-less-than-k
subarray-product-less-than-k
LC1219.PY
LC1219.PY
LC2079.py
LC2079.py
LC216.py
LC216.py
LC39.py
LC39.py
LC40.py
LC40.py
LC46.py
LC46.py
LC47.py
LC47.py
LC77.py
LC77.py
LC773.py
LC773.py
LC78.py
LC78.py
LC79.py
LC79.py
LC815.py
LC815.py
LC90.py
LC90.py
LC980.py
LC980.py
View all files
About
A repo containing my approach and solutions to the different problems on LeetCode
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.