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
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 }}
nik-ma
/
Competitive-Programming
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
402 Commits
402 Commits
10-regular-expression-matching
10-regular-expression-matching
1010-pairs-of-songs-with-total-durations-divisible-by-60
1010-pairs-of-songs-with-total-durations-divisible-by-60
106-construct-binary-tree-from-inorder-and-postorder-traversal
106-construct-binary-tree-from-inorder-and-postorder-traversal
1074-number-of-submatrices-that-sum-to-target
1074-number-of-submatrices-that-sum-to-target
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
1093-statistics-from-a-large-sample
1093-statistics-from-a-large-sample
1116-print-zero-even-odd
1116-print-zero-even-odd
1117-building-h2o
1117-building-h2o
113-path-sum-ii
113-path-sum-ii
114-flatten-binary-tree-to-linked-list
114-flatten-binary-tree-to-linked-list
116-populating-next-right-pointers-in-each-node
116-populating-next-right-pointers-in-each-node
117-populating-next-right-pointers-in-each-node-ii
117-populating-next-right-pointers-in-each-node-ii
118-pascals-triangle
118-pascals-triangle
12-integer-to-roman
12-integer-to-roman
1220-count-vowels-permutation
1220-count-vowels-permutation
1222-queens-that-can-attack-the-king
1222-queens-that-can-attack-the-king
1226-the-dining-philosophers
1226-the-dining-philosophers
1227-airplane-seat-assignment-probability
1227-airplane-seat-assignment-probability
123-best-time-to-buy-and-sell-stock-iii
123-best-time-to-buy-and-sell-stock-iii
1248-count-number-of-nice-subarrays
1248-count-number-of-nice-subarrays
1255-maximum-score-words-formed-by-letters
1255-maximum-score-words-formed-by-letters
126-word-ladder-ii
126-word-ladder-ii
127-word-ladder
127-word-ladder
1277-count-square-submatrices-with-all-ones
1277-count-square-submatrices-with-all-ones
128-longest-consecutive-sequence
128-longest-consecutive-sequence
13-roman-to-integer
13-roman-to-integer
130-surrounded-regions
130-surrounded-regions
133-clone-graph
133-clone-graph
134-gas-station
134-gas-station
137-single-number-ii
137-single-number-ii
1372-longest-zigzag-path-in-a-binary-tree
1372-longest-zigzag-path-in-a-binary-tree
140-word-break-ii
140-word-break-ii
1402-reducing-dishes
1402-reducing-dishes
142-linked-list-cycle-ii
142-linked-list-cycle-ii
146-lru-cache
146-lru-cache
1463-cherry-pickup-ii
1463-cherry-pickup-ii
147-insertion-sort-list
147-insertion-sort-list
1510-stone-game-iv
1510-stone-game-iv
154-find-minimum-in-rotated-sorted-array-ii
154-find-minimum-in-rotated-sorted-array-ii
1643-kth-smallest-instructions
1643-kth-smallest-instructions
165-compare-version-numbers
165-compare-version-numbers
1695-maximum-erasure-value
1695-maximum-erasure-value
17-letter-combinations-of-a-phone-number
17-letter-combinations-of-a-phone-number
175-combine-two-tables
175-combine-two-tables
176-second-highest-salary
176-second-highest-salary
180-consecutive-numbers
180-consecutive-numbers
1944-number-of-visible-people-in-a-queue
1944-number-of-visible-people-in-a-queue
199-binary-tree-right-side-view
199-binary-tree-right-side-view
2-add-two-numbers
2-add-two-numbers
2029-stone-game-ix
2029-stone-game-ix
2063-vowels-of-all-substrings
2063-vowels-of-all-substrings
2096-step-by-step-directions-from-a-binary-tree-node-to-another
2096-step-by-step-directions-from-a-binary-tree-node-to-another
2101-detonate-the-maximum-bombs
2101-detonate-the-maximum-bombs
22-generate-parentheses
22-generate-parentheses
2221-find-triangular-sum-of-an-array
2221-find-triangular-sum-of-an-array
2225-find-players-with-zero-or-one-losses
2225-find-players-with-zero-or-one-losses
2321-maximum-score-of-spliced-array
2321-maximum-score-of-spliced-array
2322-minimum-score-after-removals-on-a-tree
2322-minimum-score-after-removals-on-a-tree
235-lowest-common-ancestor-of-a-binary-search-tree
235-lowest-common-ancestor-of-a-binary-search-tree
2350-shortest-impossible-sequence-of-rolls
2350-shortest-impossible-sequence-of-rolls
236-lowest-common-ancestor-of-a-binary-tree
236-lowest-common-ancestor-of-a-binary-tree
2360-longest-cycle-in-a-graph
2360-longest-cycle-in-a-graph
2382-maximum-segment-sum-after-removals
2382-maximum-segment-sum-after-removals
240-search-a-2d-matrix-ii
240-search-a-2d-matrix-ii
25-reverse-nodes-in-k-group
25-reverse-nodes-in-k-group
279-perfect-squares
279-perfect-squares
300-longest-increasing-subsequence
300-longest-increasing-subsequence
307-range-sum-query-mutable
307-range-sum-query-mutable
315-count-of-smaller-numbers-after-self
315-count-of-smaller-numbers-after-self
32-longest-valid-parentheses
32-longest-valid-parentheses
334-increasing-triplet-subsequence
334-increasing-triplet-subsequence
34-find-first-and-last-position-of-element-in-sorted-array
34-find-first-and-last-position-of-element-in-sorted-array
36-valid-sudoku
36-valid-sudoku
37-sudoku-solver
37-sudoku-solver
377-combination-sum-iv
377-combination-sum-iv
378-kth-smallest-element-in-a-sorted-matrix
378-kth-smallest-element-in-a-sorted-matrix
387-first-unique-character-in-a-string
387-first-unique-character-in-a-string
39-combination-sum
39-combination-sum
4-median-of-two-sorted-arrays
4-median-of-two-sorted-arrays
406-queue-reconstruction-by-height
406-queue-reconstruction-by-height
41-first-missing-positive
41-first-missing-positive
42-trapping-rain-water
42-trapping-rain-water
43-multiply-strings
43-multiply-strings
437-path-sum-iii
437-path-sum-iii
438-find-all-anagrams-in-a-string
438-find-all-anagrams-in-a-string
450-delete-node-in-a-bst
450-delete-node-in-a-bst
458-poor-pigs
458-poor-pigs
46-permutations
46-permutations
464-can-i-win
464-can-i-win
473-matchsticks-to-square
473-matchsticks-to-square
486-predict-the-winner
486-predict-the-winner
50-powx-n
50-powx-n
502-ipo
502-ipo
509-fibonacci-number
509-fibonacci-number
538-convert-bst-to-greater-tree
538-convert-bst-to-greater-tree
543-diameter-of-binary-tree
543-diameter-of-binary-tree
560-subarray-sum-equals-k
560-subarray-sum-equals-k
57-insert-interval
57-insert-interval
576-out-of-boundary-paths
576-out-of-boundary-paths
583-delete-operation-for-two-strings
583-delete-operation-for-two-strings
View all files
About
Data Structures and Algorithms
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.