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 }}
Chetansahney
/
DSA
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
607 Commits
607 Commits
Folders and files
Name
Name
Last commit message
Last commit date
100-same-tree
100-same-tree
1005-univalued-binary-tree
1005-univalued-binary-tree
101-symmetric-tree
101-symmetric-tree
1016-subarray-sums-divisible-by-k
1016-subarray-sums-divisible-by-k
1018-largest-perimeter-triangle
1018-largest-perimeter-triangle
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
1031-add-to-array-form-of-integer
1031-add-to-array-form-of-integer
1035-cousins-in-binary-tree
1035-cousins-in-binary-tree
1037-minimum-number-of-k-consecutive-bit-flips
1037-minimum-number-of-k-consecutive-bit-flips
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
1054-complement-of-base-10-integer
1054-complement-of-base-10-integer
106-construct-binary-tree-from-inorder-and-postorder-traversal
106-construct-binary-tree-from-inorder-and-postorder-traversal
107-binary-tree-level-order-traversal-ii
107-binary-tree-level-order-traversal-ii
1079-sum-of-root-to-leaf-binary-numbers
1079-sum-of-root-to-leaf-binary-numbers
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
109-convert-sorted-list-to-binary-search-tree
109-convert-sorted-list-to-binary-search-tree
11-container-with-most-water
11-container-with-most-water
111-minimum-depth-of-binary-tree
111-minimum-depth-of-binary-tree
1112-find-words-that-can-be-formed-by-characters
1112-find-words-that-can-be-formed-by-characters
1115-valid-boomerang
1115-valid-boomerang
112-path-sum
112-path-sum
113-path-sum-ii
113-path-sum-ii
114-flatten-binary-tree-to-linked-list
114-flatten-binary-tree-to-linked-list
1145-number-of-submatrices-that-sum-to-target
1145-number-of-submatrices-that-sum-to-target
1146-greatest-common-divisor-of-strings
1146-greatest-common-divisor-of-strings
116-populating-next-right-pointers-in-each-node
116-populating-next-right-pointers-in-each-node
118-pascals-triangle
118-pascals-triangle
12-integer-to-roman
12-integer-to-roman
1206-corporate-flight-bookings
1206-corporate-flight-bookings
1207-delete-nodes-and-return-forest
1207-delete-nodes-and-return-forest
1219-longest-well-performing-interval
1219-longest-well-performing-interval
1227-number-of-equivalent-domino-pairs
1227-number-of-equivalent-domino-pairs
1256-rank-transform-of-an-array
1256-rank-transform-of-an-array
127-word-ladder
127-word-ladder
128-longest-consecutive-sequence
128-longest-consecutive-sequence
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
1293-three-consecutive-odds
1293-three-consecutive-odds
1297-maximum-number-of-balloons
1297-maximum-number-of-balloons
1341-split-a-string-in-balanced-strings
1341-split-a-string-in-balanced-strings
1349-check-if-it-is-a-straight-line
1349-check-if-it-is-a-straight-line
137-single-number-ii
137-single-number-ii
138-copy-list-with-random-pointer
138-copy-list-with-random-pointer
139-word-break
139-word-break
142-linked-list-cycle-ii
142-linked-list-cycle-ii
143-reorder-list
143-reorder-list
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1440-convert-integer-to-the-sum-of-two-no-zero-integers
1440-convert-integer-to-the-sum-of-two-no-zero-integers
1450-delete-leaves-with-a-given-value
1450-delete-leaves-with-a-given-value
1458-sort-integers-by-the-number-of-1-bits
1458-sort-integers-by-the-number-of-1-bits
1468-check-if-n-and-its-double-exist
1468-check-if-n-and-its-double-exist
1472-increasing-decreasing-string
1472-increasing-decreasing-string
148-sort-list
148-sort-list
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
15-3sum
15-3sum
151-reverse-words-in-a-string
151-reverse-words-in-a-string
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
154-find-minimum-in-rotated-sorted-array-ii
154-find-minimum-in-rotated-sorted-array-ii
16-3sum-closest
16-3sum-closest
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1603-running-sum-of-1d-array
1603-running-sum-of-1d-array
162-find-peak-element
162-find-peak-element
1642-water-bottles
1642-water-bottles
165-compare-version-numbers
165-compare-version-numbers
166-fraction-to-recurring-decimal
166-fraction-to-recurring-decimal
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
171-excel-sheet-column-number
171-excel-sheet-column-number
1731-even-odd-tree
1731-even-odd-tree
1817-calculate-money-in-leetcode-bank
1817-calculate-money-in-leetcode-bank
1833-find-the-highest-altitude
1833-find-the-highest-altitude
187-repeated-dna-sequences
187-repeated-dna-sequences
189-rotate-array
189-rotate-array
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
191-number-of-1-bits
191-number-of-1-bits
1916-find-center-of-star-graph
1916-find-center-of-star-graph
199-binary-tree-right-side-view
199-binary-tree-right-side-view
2-add-two-numbers
2-add-two-numbers
200-number-of-islands
200-number-of-islands
201-bitwise-and-of-numbers-range
201-bitwise-and-of-numbers-range
203-remove-linked-list-elements
203-remove-linked-list-elements
2048-build-array-from-permutation
2048-build-array-from-permutation
205-isomorphic-strings
205-isomorphic-strings
206-reverse-linked-list
206-reverse-linked-list
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
21-merge-two-sorted-lists
21-merge-two-sorted-lists
210-course-schedule-ii
210-course-schedule-ii
2121-find-if-path-exists-in-graph
2121-find-if-path-exists-in-graph
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
2215-finding-3-digit-even-numbers
2215-finding-3-digit-even-numbers
2216-delete-the-middle-node-of-a-linked-list
2216-delete-the-middle-node-of-a-linked-list
224-basic-calculator
224-basic-calculator
2244-number-of-laser-beams-in-a-bank
2244-number-of-laser-beams-in-a-bank
226-invert-binary-tree
226-invert-binary-tree
227-basic-calculator-ii
227-basic-calculator-ii
229-majority-element-ii
229-majority-element-ii
View all files
Repository files navigation
README
More
items
DSA
About
Leetcode DSA probelms and their explanations
Topics
binary-search
dynamic-programming
graph
greedy
heapsort
linked-list
number-theory
sorting-algorithms
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.