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 }}
nikhraj
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
481 Commits
481 Commits
01-matrix
01-matrix
132-pattern
132-pattern
2-keys-keyboard
2-keys-keyboard
3sum-with-multiplicity
3sum-with-multiplicity
add-two-numbers-ii
add-two-numbers-ii
add-two-numbers
add-two-numbers
advantage-shuffle
advantage-shuffle
all-paths-from-source-to-target
all-paths-from-source-to-target
arithmetic-slices-ii-subsequence
arithmetic-slices-ii-subsequence
arithmetic-slices
arithmetic-slices
beautiful-arrangement-ii
beautiful-arrangement-ii
best-time-to-buy-and-sell-stock-ii
best-time-to-buy-and-sell-stock-ii
best-time-to-buy-and-sell-stock
best-time-to-buy-and-sell-stock
binary-tree-pruning
binary-tree-pruning
binary-tree-tilt
binary-tree-tilt
bitwise-and-of-numbers-range
bitwise-and-of-numbers-range
brick-wall
brick-wall
can-place-flowers
can-place-flowers
capacity-to-ship-packages-within-d-days
capacity-to-ship-packages-within-d-days
check-if-n-and-its-double-exist
check-if-n-and-its-double-exist
check-if-one-string-swap-can-make-strings-equal
check-if-one-string-swap-can-make-strings-equal
check-if-string-is-a-prefix-of-array
check-if-string-is-a-prefix-of-array
climbing-stairs
climbing-stairs
coin-change
coin-change
coloring-a-border
coloring-a-border
combination-sum-ii
combination-sum-ii
combination-sum
combination-sum
combine-two-tables
combine-two-tables
construct-binary-tree-from-preorder-and-inorder-traversal
construct-binary-tree-from-preorder-and-inorder-traversal
container-with-most-water
container-with-most-water
convert-binary-number-in-a-linked-list-to-integer
convert-binary-number-in-a-linked-list-to-integer
copy-list-with-random-pointer
copy-list-with-random-pointer
count-binary-substrings
count-binary-substrings
count-good-nodes-in-binary-tree
count-good-nodes-in-binary-tree
count-number-of-teams
count-number-of-teams
count-numbers-with-unique-digits
count-numbers-with-unique-digits
count-of-smaller-numbers-after-self
count-of-smaller-numbers-after-self
count-primes
count-primes
course-schedule
course-schedule
cousins-in-binary-tree
cousins-in-binary-tree
cut-off-trees-for-golf-event
cut-off-trees-for-golf-event
cyclically-rotating-a-grid
cyclically-rotating-a-grid
daily-temperatures
daily-temperatures
design-movie-rental-system
design-movie-rental-system
determine-if-string-halves-are-alike
determine-if-string-halves-are-alike
diameter-of-binary-tree
diameter-of-binary-tree
divide-array-in-sets-of-k-consecutive-numbers
divide-array-in-sets-of-k-consecutive-numbers
dungeon-game
dungeon-game
duplicate-emails
duplicate-emails
eliminate-maximum-number-of-monsters
eliminate-maximum-number-of-monsters
encode-and-decode-tinyurl
encode-and-decode-tinyurl
erect-the-fence
erect-the-fence
evaluate-the-bracket-pairs-of-a-string
evaluate-the-bracket-pairs-of-a-string
find-all-anagrams-in-a-string
find-all-anagrams-in-a-string
find-all-duplicates-in-an-array
find-all-duplicates-in-an-array
find-all-groups-of-farmland
find-all-groups-of-farmland
find-center-of-star-graph
find-center-of-star-graph
find-first-and-last-position-of-element-in-sorted-array
find-first-and-last-position-of-element-in-sorted-array
find-k-closest-elements
find-k-closest-elements
find-minimum-in-rotated-sorted-array-ii
find-minimum-in-rotated-sorted-array-ii
find-minimum-in-rotated-sorted-array
find-minimum-in-rotated-sorted-array
find-n-unique-integers-sum-up-to-zero
find-n-unique-integers-sum-up-to-zero
find-peak-element
find-peak-element
find-the-duplicate-number
find-the-duplicate-number
find-the-smallest-divisor-given-a-threshold
find-the-smallest-divisor-given-a-threshold
find-the-winner-of-the-circular-game
find-the-winner-of-the-circular-game
finding-the-users-active-minutes
finding-the-users-active-minutes
first-bad-version
first-bad-version
flip-binary-tree-to-match-preorder-traversal
flip-binary-tree-to-match-preorder-traversal
flip-string-to-monotone-increasing
flip-string-to-monotone-increasing
frog-jump
frog-jump
furthest-building-you-can-reach
furthest-building-you-can-reach
generate-parentheses
generate-parentheses
global-and-local-inversions
global-and-local-inversions
guess-number-higher-or-lower
guess-number-higher-or-lower
hamming-distance
hamming-distance
hand-of-straights
hand-of-straights
height-checker
height-checker
house-robber
house-robber
implement-strstr
implement-strstr
implement-trie-prefix-tree
implement-trie-prefix-tree
increasing-triplet-subsequence
increasing-triplet-subsequence
intersection-of-two-arrays
intersection-of-two-arrays
intersection-of-two-linked-lists
intersection-of-two-linked-lists
invert-binary-tree
invert-binary-tree
island-perimeter
island-perimeter
jewels-and-stones
jewels-and-stones
jump-game-ii
jump-game-ii
jump-game-iii
jump-game-iii
jump-game-iv
jump-game-iv
jump-game
jump-game
k-closest-points-to-origin
k-closest-points-to-origin
keys-and-rooms
keys-and-rooms
koko-eating-bananas
koko-eating-bananas
kth-smallest-element-in-a-bst
kth-smallest-element-in-a-bst
largest-rectangle-in-histogram
largest-rectangle-in-histogram
letter-combinations-of-a-phone-number
letter-combinations-of-a-phone-number
linked-list-cycle
linked-list-cycle
long-pressed-name
long-pressed-name
longest-common-prefix
longest-common-prefix
View all files
About
Leetcode questions and solutions of mine
Topics
cpp
interview-preparation
interview-questions
leetcode-cpp
leetcode-solutions
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.