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 }}
VARUN-K-BANSAL
LeetCode-Solution
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCode-Solution
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
Collection of LeetCode questions and my solutions
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
573 Commits
573 Commits
Folders and files
Name
Name
Last commit message
Last commit date
0001-two-sum
0001-two-sum
0002-add-two-numbers
0002-add-two-numbers
0005-longest-palindromic-substring
0005-longest-palindromic-substring
0010-regular-expression-matching
0010-regular-expression-matching
0012-integer-to-roman
0012-integer-to-roman
0013-roman-to-integer
0013-roman-to-integer
0014-longest-common-prefix
0014-longest-common-prefix
0019-remove-nth-node-from-end-of-list
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0024-swap-nodes-in-pairs
0025-reverse-nodes-in-k-group
0025-reverse-nodes-in-k-group
0026-remove-duplicates-from-sorted-array
0026-remove-duplicates-from-sorted-array
0027-remove-element
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0030-substring-with-concatenation-of-all-words
0033-search-in-rotated-sorted-array
0033-search-in-rotated-sorted-array
0037-sudoku-solver
0037-sudoku-solver
0038-count-and-say
0038-count-and-say
0042-trapping-rain-water
0042-trapping-rain-water
0043-multiply-strings
0043-multiply-strings
0048-rotate-image
0048-rotate-image
0049-group-anagrams
0049-group-anagrams
0054-spiral-matrix
0054-spiral-matrix
0056-merge-intervals
0056-merge-intervals
0057-insert-interval
0057-insert-interval
0058-length-of-last-word
0058-length-of-last-word
0059-spiral-matrix-ii
0059-spiral-matrix-ii
0061-rotate-list
0061-rotate-list
0074-search-a-2d-matrix
0074-search-a-2d-matrix
0075-sort-colors
0075-sort-colors
0076-minimum-window-substring
0076-minimum-window-substring
0078-subsets
0078-subsets
0080-remove-duplicates-from-sorted-array-ii
0080-remove-duplicates-from-sorted-array-ii
0082-remove-duplicates-from-sorted-list-ii
0082-remove-duplicates-from-sorted-list-ii
0088-merge-sorted-array
0088-merge-sorted-array
0090-subsets-ii
0090-subsets-ii
0092-reverse-linked-list-ii
0092-reverse-linked-list-ii
0094-binary-tree-inorder-traversal
0094-binary-tree-inorder-traversal
0096-unique-binary-search-trees
0096-unique-binary-search-trees
0097-interleaving-string
0097-interleaving-string
0098-validate-binary-search-tree
0098-validate-binary-search-tree
0101-symmetric-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0107-binary-tree-level-order-traversal-ii
0107-binary-tree-level-order-traversal-ii
0108-convert-sorted-array-to-binary-search-tree
0108-convert-sorted-array-to-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree
0110-balanced-binary-tree
0110-balanced-binary-tree
0113-path-sum-ii
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0116-populating-next-right-pointers-in-each-node
0119-pascals-triangle-ii
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0121-best-time-to-buy-and-sell-stock
0133-clone-graph
0133-clone-graph
0138-copy-list-with-random-pointer
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0141-linked-list-cycle
0142-linked-list-cycle-ii
0142-linked-list-cycle-ii
0143-reorder-list
0143-reorder-list
0148-sort-list
0148-sort-list
0151-reverse-words-in-a-string
0151-reverse-words-in-a-string
0153-find-minimum-in-rotated-sorted-array
0153-find-minimum-in-rotated-sorted-array
0155-min-stack
0155-min-stack
0160-intersection-of-two-linked-lists
0160-intersection-of-two-linked-lists
0162-find-peak-element
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0167-two-sum-ii-input-array-is-sorted
0168-excel-sheet-column-title
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0171-excel-sheet-column-number
0173-binary-search-tree-iterator
0173-binary-search-tree-iterator
0175-combine-two-tables
0175-combine-two-tables
0181-employees-earning-more-than-their-managers
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0182-duplicate-emails
0183-customers-who-never-order
0183-customers-who-never-order
0187-repeated-dna-sequences
0187-repeated-dna-sequences
0189-rotate-array
0189-rotate-array
0191-number-of-1-bits
0191-number-of-1-bits
0196-delete-duplicate-emails
0196-delete-duplicate-emails
0197-rising-temperature
0197-rising-temperature
0198-house-robber
0198-house-robber
0199-binary-tree-right-side-view
0199-binary-tree-right-side-view
0202-happy-number
0202-happy-number
0206-reverse-linked-list
0206-reverse-linked-list
0209-minimum-size-subarray-sum
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0215-kth-largest-element-in-an-array
0219-contains-duplicate-ii
0219-contains-duplicate-ii
0225-implement-stack-using-queues
0225-implement-stack-using-queues
0226-invert-binary-tree
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0230-kth-smallest-element-in-a-bst
0232-implement-queue-using-stacks
0232-implement-queue-using-stacks
0234-palindrome-linked-list
0234-palindrome-linked-list
0236-lowest-common-ancestor-of-a-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0237-delete-node-in-a-linked-list
0237-delete-node-in-a-linked-list
0238-product-of-array-except-self
0238-product-of-array-except-self
0240-search-a-2d-matrix-ii
0240-search-a-2d-matrix-ii
0257-binary-tree-paths
0257-binary-tree-paths
0260-single-number-iii
0260-single-number-iii
0274-h-index
0274-h-index
0284-peeking-iterator
0284-peeking-iterator
0287-find-the-duplicate-number
0287-find-the-duplicate-number
View all files
Repository files navigation
README
More
items
LeetCode-Solution
About
Collection of LeetCode questions and my solutions
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.