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 }}
amanaggarwal06
/
Leetcode
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
342 Commits
342 Commits
Folders and files
Name
Name
Last commit message
Last commit date
100-same-tree
100-same-tree
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
103-binary-tree-zigzag-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
1030-smallest-string-starting-from-leaf
1030-smallest-string-starting-from-leaf
1034-subarrays-with-k-different-integers
1034-subarrays-with-k-different-integers
1036-rotting-oranges
1036-rotting-oranges
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1046-max-consecutive-ones-iii
1046-max-consecutive-ones-iii
1073-number-of-enclaves
1073-number-of-enclaves
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
110-balanced-binary-tree
110-balanced-binary-tree
1171-shortest-path-in-binary-matrix
1171-shortest-path-in-binary-matrix
118-pascals-triangle
118-pascals-triangle
1258-article-views-i
1258-article-views-i
1267-remove-zero-sum-consecutive-nodes-from-linked-list
1267-remove-zero-sum-consecutive-nodes-from-linked-list
127-word-ladder
127-word-ladder
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
1293-three-consecutive-odds
1293-three-consecutive-odds
1298-reverse-substrings-between-each-pair-of-parentheses
1298-reverse-substrings-between-each-pair-of-parentheses
130-surrounded-regions
130-surrounded-regions
1300-critical-connections-in-a-network
1300-critical-connections-in-a-network
1370-count-number-of-nice-subarrays
1370-count-number-of-nice-subarrays
138-copy-list-with-random-pointer
138-copy-list-with-random-pointer
139-word-break
139-word-break
1390-average-selling-price
1390-average-selling-price
141-linked-list-cycle
141-linked-list-cycle
142-linked-list-cycle-ii
142-linked-list-cycle-ii
143-reorder-list
143-reorder-list
1442-number-of-operations-to-make-network-connected
1442-number-of-operations-to-make-network-connected
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
1460-number-of-substrings-containing-all-three-characters
1460-number-of-substrings-containing-all-three-characters
1509-replace-employee-id-with-the-unique-identifier
1509-replace-employee-id-with-the-unique-identifier
1538-maximum-points-you-can-obtain-from-cards
1538-maximum-points-you-can-obtain-from-cards
155-min-stack
155-min-stack
1556-make-two-arrays-equal-by-reversing-subarrays
1556-make-two-arrays-equal-by-reversing-subarrays
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element
1586-longest-subarray-of-1s-after-deleting-one-element
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1642-water-bottles
1642-water-bottles
1666-make-the-string-great
1666-make-the-string-great
169-majority-element
169-majority-element
1720-crawler-log-folder
1720-crawler-log-folder
1737-maximum-nesting-depth-of-the-parentheses
1737-maximum-nesting-depth-of-the-parentheses
1741-sort-array-by-increasing-frequency
1741-sort-array-by-increasing-frequency
1753-path-with-minimum-effort
1753-path-with-minimum-effort
1765-merge-in-between-linked-lists
1765-merge-in-between-linked-lists
1802-number-of-students-unable-to-eat-lunch
1802-number-of-students-unable-to-eat-lunch
1803-average-waiting-time
1803-average-waiting-time
1818-maximum-score-from-removing-substrings
1818-maximum-score-from-removing-substrings
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
1908-recyclable-and-low-fat-products
1908-recyclable-and-low-fat-products
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
2044-number-of-wonderful-substrings
2044-number-of-wonderful-substrings
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
210-course-schedule-ii
210-course-schedule-ii
2128-reverse-prefix-of-word
2128-reverse-prefix-of-word
215-kth-largest-element-in-an-array
215-kth-largest-element-in-an-array
2163-kth-distinct-string-in-an-array
2163-kth-distinct-string-in-an-array
2195-time-needed-to-buy-tickets
2195-time-needed-to-buy-tickets
229-majority-element-ii
229-majority-element-ii
2299-merge-nodes-in-between-zeros
2299-merge-nodes-in-between-zeros
2306-create-binary-tree-from-descriptions
2306-create-binary-tree-from-descriptions
234-palindrome-linked-list
234-palindrome-linked-list
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
25-reverse-nodes-in-k-group
25-reverse-nodes-in-k-group
2502-sort-the-people
2502-sort-the-people
2524-largest-positive-integer-that-exists-with-its-negative
2524-largest-positive-integer-that-exists-with-its-negative
2571-find-the-pivot-integer
2571-find-the-pivot-integer
2572-append-characters-to-string-to-make-subsequence
2572-append-characters-to-string-to-make-subsequence
2573-remove-nodes-from-linked-list
2573-remove-nodes-from-linked-list
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
2634-minimum-common-value
2634-minimum-common-value
2727-number-of-senior-citizens
2727-number-of-senior-citizens
2846-robot-collisions
2846-robot-collisions
287-find-the-duplicate-number
287-find-the-duplicate-number
2871-double-a-number-represented-as-a-linked-list
2871-double-a-number-represented-as-a-linked-list
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
3055-maximum-odd-binary-number
3055-maximum-odd-binary-number
31-next-permutation
31-next-permutation
3213-count-subarrays-where-max-element-appears-at-least-k-times
3213-count-subarrays-where-max-element-appears-at-least-k-times
3225-length-of-longest-subarray-with-at-most-k-frequency
3225-length-of-longest-subarray-with-at-most-k-frequency
3242-count-elements-with-maximum-frequency
3242-count-elements-with-maximum-frequency
347-top-k-frequent-elements
347-top-k-frequent-elements
349-intersection-of-two-arrays
349-intersection-of-two-arrays
350-intersection-of-two-arrays-ii
350-intersection-of-two-arrays-ii
37-sudoku-solver
37-sudoku-solver
4-median-of-two-sorted-arrays
4-median-of-two-sorted-arrays
40-combination-sum-ii
40-combination-sum-ii
402-remove-k-digits
402-remove-k-digits
41-first-missing-positive
41-first-missing-positive
416-partition-equal-subset-sum
416-partition-equal-subset-sum
424-longest-repeating-character-replacement
424-longest-repeating-character-replacement
438-find-all-anagrams-in-a-string
438-find-all-anagrams-in-a-string
442-find-all-duplicates-in-an-array
442-find-all-duplicates-in-an-array
View all files
Repository files navigation
README
More
items
Leetcode
About
No description, website, or topics provided.
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.