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 }}
Ultron09
/
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
Files
Expand file tree
main
Breadcrumbs
LeetCode
/
solutions
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
LeetCode
/
solutions
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0001-two-sum
0001-two-sum
0004-median-of-two-sorted-arrays
0004-median-of-two-sorted-arrays
0010-regular-expression-matching
0010-regular-expression-matching
0020-valid-parentheses
0020-valid-parentheses
0023-merge-k-sorted-lists
0023-merge-k-sorted-lists
0025-reverse-nodes-in-k-group
0025-reverse-nodes-in-k-group
0030-substring-with-concatenation-of-all-words
0030-substring-with-concatenation-of-all-words
0032-longest-valid-parentheses
0032-longest-valid-parentheses
0037-sudoku-solver
0037-sudoku-solver
0041-first-missing-positive
0041-first-missing-positive
0042-trapping-rain-water
0042-trapping-rain-water
0044-wildcard-matching
0044-wildcard-matching
0051-n-queens
0051-n-queens
0052-n-queens-ii
0052-n-queens-ii
0056-merge-intervals
0056-merge-intervals
0060-permutation-sequence
0060-permutation-sequence
0065-valid-number
0065-valid-number
0068-text-justification
0068-text-justification
0076-minimum-window-substring
0076-minimum-window-substring
0084-largest-rectangle-in-histogram
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0085-maximal-rectangle
0087-scramble-string
0087-scramble-string
0115-distinct-subsequences
0115-distinct-subsequences
0123-best-time-to-buy-and-sell-stock-iii
0123-best-time-to-buy-and-sell-stock-iii
0124-binary-tree-maximum-path-sum
0124-binary-tree-maximum-path-sum
0126-word-ladder-ii
0126-word-ladder-ii
0127-word-ladder
0127-word-ladder
0132-palindrome-partitioning-ii
0132-palindrome-partitioning-ii
0135-candy
0135-candy
0140-word-break-ii
0140-word-break-ii
0149-max-points-on-a-line
0149-max-points-on-a-line
0154-find-minimum-in-rotated-sorted-array-ii
0154-find-minimum-in-rotated-sorted-array-ii
0174-dungeon-game
0174-dungeon-game
0185-department-top-three-salaries
0185-department-top-three-salaries
0188-best-time-to-buy-and-sell-stock-iv
0188-best-time-to-buy-and-sell-stock-iv
0212-word-search-ii
0212-word-search-ii
0214-shortest-palindrome
0214-shortest-palindrome
0218-the-skyline-problem
0218-the-skyline-problem
0220-contains-duplicate-iii
0220-contains-duplicate-iii
0224-basic-calculator
0224-basic-calculator
0233-number-of-digit-one
0233-number-of-digit-one
0239-sliding-window-maximum
0239-sliding-window-maximum
0262-trips-and-users
0262-trips-and-users
0273-integer-to-english-words
0273-integer-to-english-words
0282-expression-add-operators
0282-expression-add-operators
0295-find-median-from-data-stream
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0297-serialize-and-deserialize-binary-tree
0301-remove-invalid-parentheses
0301-remove-invalid-parentheses
0312-burst-balloons
0312-burst-balloons
0315-count-of-smaller-numbers-after-self
0315-count-of-smaller-numbers-after-self
0321-create-maximum-number
0321-create-maximum-number
0327-count-of-range-sum
0327-count-of-range-sum
0329-longest-increasing-path-in-a-matrix
0329-longest-increasing-path-in-a-matrix
0330-patching-array
0330-patching-array
0332-reconstruct-itinerary
0332-reconstruct-itinerary
0335-self-crossing
0335-self-crossing
0336-palindrome-pairs
0336-palindrome-pairs
0352-data-stream-as-disjoint-intervals
0352-data-stream-as-disjoint-intervals
0354-russian-doll-envelopes
0354-russian-doll-envelopes
0363-max-sum-of-rectangle-no-larger-than-k
0363-max-sum-of-rectangle-no-larger-than-k
0381-insert-delete-getrandom-o1-duplicates-allowed
0381-insert-delete-getrandom-o1-duplicates-allowed
0391-perfect-rectangle
0391-perfect-rectangle
0403-frog-jump
0403-frog-jump
0407-trapping-rain-water-ii
0407-trapping-rain-water-ii
0410-split-array-largest-sum
0410-split-array-largest-sum
0420-strong-password-checker
0420-strong-password-checker
0432-all-oone-data-structure
0432-all-oone-data-structure
0440-k-th-smallest-in-lexicographical-order
0440-k-th-smallest-in-lexicographical-order
0446-arithmetic-slices-ii-subsequence
0446-arithmetic-slices-ii-subsequence
0458-poor-pigs
0458-poor-pigs
0460-lfu-cache
0460-lfu-cache
0466-count-the-repetitions
0466-count-the-repetitions
0472-concatenated-words
0472-concatenated-words
0479-largest-palindrome-product
0479-largest-palindrome-product
0480-sliding-window-median
0480-sliding-window-median
0483-smallest-good-base
0483-smallest-good-base
0488-zuma-game
0488-zuma-game
0493-reverse-pairs
0493-reverse-pairs
0502-ipo
0502-ipo
0514-freedom-trail
0514-freedom-trail
0517-super-washing-machines
0517-super-washing-machines
0546-remove-boxes
0546-remove-boxes
0552-student-attendance-record-ii
0552-student-attendance-record-ii
0564-find-the-closest-palindrome
0564-find-the-closest-palindrome
0587-erect-the-fence
0587-erect-the-fence
0591-tag-validator
0591-tag-validator
0600-non-negative-integers-without-consecutive-ones
0600-non-negative-integers-without-consecutive-ones
0601-human-traffic-of-stadium
0601-human-traffic-of-stadium
0629-k-inverse-pairs-array
0629-k-inverse-pairs-array
0630-course-schedule-iii
0630-course-schedule-iii
0632-smallest-range-covering-elements-from-k-lists
0632-smallest-range-covering-elements-from-k-lists
0639-decode-ways-ii
0639-decode-ways-ii
0664-strange-printer
0664-strange-printer
0668-kth-smallest-number-in-multiplication-table
0668-kth-smallest-number-in-multiplication-table
0675-cut-off-trees-for-golf-event
0675-cut-off-trees-for-golf-event
0679-24-game
0679-24-game
0685-redundant-connection-ii
0685-redundant-connection-ii
0689-maximum-sum-of-3-non-overlapping-subarrays
0689-maximum-sum-of-3-non-overlapping-subarrays
0691-stickers-to-spell-word
0691-stickers-to-spell-word
0699-falling-squares
0699-falling-squares
View all files
You can’t perform that action at this time.