Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
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 }}
codemistic
/
Data-Structures-and-Algorithms
Public
Notifications
You must be signed in to change notification settings
Fork
366
Star
459
Code
Issues
49
Pull requests
65
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
main
Breadcrumbs
Data-Structures-and-Algorithms
/
CPP
/
Leetcode
/
Copy path
Directory actions
More options
Directory actions
More options
Latest commit
History
History
main
Breadcrumbs
Data-Structures-and-Algorithms
/
CPP
/
Leetcode
/
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
1-two-sum
1-two-sum
1004-max-consecutive-ones-iii
1004-max-consecutive-ones-iii
1021-remove-outermost-parentheses
1021-remove-outermost-parentheses
112-path-sum
112-path-sum
118-pascals-triangle
118-pascals-triangle
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
1227-airplane-seat-assignment-probability
1227-airplane-seat-assignment-probability
125-valid-palindrome
125-valid-palindrome
1290-convert-binary-number-in-a-linked-list-to-integer
1290-convert-binary-number-in-a-linked-list-to-integer
13-roman-to-integer
13-roman-to-integer
1337-the-k-weakest-rows-in-a-matrix
1337-the-k-weakest-rows-in-a-matrix
1342-number-of-steps-to-reduce-a-number-to-zero
1342-number-of-steps-to-reduce-a-number-to-zero
1346-check-if-n-and-its-double-exist
1346-check-if-n-and-its-double-exist
136-single-number
136-single-number
14-longest-common-prefix
14-longest-common-prefix
1433-check-if-a-string-can-break-another-string
1433-check-if-a-string-can-break-another-string
1448-count-good-nodes-in-binary-tree
1448-count-good-nodes-in-binary-tree
1464-maximum-product-of-two-elements-in-an-array
1464-maximum-product-of-two-elements-in-an-array
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
151-reverse-words-in-a-string
151-reverse-words-in-a-string
1614-maximum-nesting-depth-of-the-parentheses
1614-maximum-nesting-depth-of-the-parentheses
1669-merge-in-between-linked-lists
1669-merge-in-between-linked-lists
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
1679-max-number-of-k-sum-pairs
1679-max-number-of-k-sum-pairs
1721-swapping-nodes-in-a-linked-list
1721-swapping-nodes-in-a-linked-list
1752-check-if-array-is-sorted-and-rotated
1752-check-if-array-is-sorted-and-rotated
1768-merge-strings-alternately
1768-merge-strings-alternately
1832-check-if-the-sentence-is-pangram
1832-check-if-the-sentence-is-pangram
1859-sorting-the-sentence
1859-sorting-the-sentence
189-rotate-array
189-rotate-array
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
191-number-of-1-bits
191-number-of-1-bits
1941-check-if-all-characters-have-equal-number-of-occurrences
1941-check-if-all-characters-have-equal-number-of-occurrences
20-valid-parentheses
20-valid-parentheses
2007-find-original-array-from-doubled-array
2007-find-original-array-from-doubled-array
2011-final-value-of-variable-after-performing-operations
2011-final-value-of-variable-after-performing-operations
2089-find-target-indices-after-sorting-array
2089-find-target-indices-after-sorting-array
2125-number-of-laser-beams-in-a-bank
2125-number-of-laser-beams-in-a-bank
2130-maximum-twin-sum-of-a-linked-list
2130-maximum-twin-sum-of-a-linked-list
2149-rearrange-array-elements-by-sign
2149-rearrange-array-elements-by-sign
2150-find-all-lonely-numbers-in-the-array
2150-find-all-lonely-numbers-in-the-array
2164-sort-even-and-odd-indices-independently
2164-sort-even-and-odd-indices-independently
2181-merge-nodes-in-between-zeros
2181-merge-nodes-in-between-zeros
2296-design-a-text-editor
2296-design-a-text-editor
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
2395-find-subarrays-with-equal-sum
2395-find-subarrays-with-equal-sum
24-swap-nodes-in-pairs
24-swap-nodes-in-pairs
242-valid-anagram
242-valid-anagram
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
268-missing-number
268-missing-number
283-move-zeroes
283-move-zeroes
287-find-the-duplicate-number
287-find-the-duplicate-number
300-longest-increasing-subsequence
300-longest-increasing-subsequence
326-power-of-three
326-power-of-three
33. Search in Rotated Sorted Array
33. Search in Rotated Sorted Array
342-power-of-four
342-power-of-four
344-reverse-string
344-reverse-string
389-find-the-difference
389-find-the-difference
448-find-all-numbers-disappeared-in-an-array
448-find-all-numbers-disappeared-in-an-array
47-permutations-ii
47-permutations-ii
485-max-consecutive-ones
485-max-consecutive-ones
509-fibonacci-number
509-fibonacci-number
520-detect-capital
520-detect-capital
53-maximum-subarray
53-maximum-subarray
535-encode-and-decode-tinyurl
535-encode-and-decode-tinyurl
557-reverse-words-in-a-string-iii
557-reverse-words-in-a-string-iii
680-valid-palindrome-ii
680-valid-palindrome-ii
682-baseball-game
682-baseball-game
7-reverse-integer
7-reverse-integer
704-binary-search
704-binary-search
804-unique-morse-code-words
804-unique-morse-code-words
81-search-in-rotated-sorted-array-ii
81-search-in-rotated-sorted-array-ii
844-backspace-string-compare
844-backspace-string-compare
867-transpose-matrix
867-transpose-matrix
876-middle-of-the-linked-list
876-middle-of-the-linked-list
88-merge-sorted-array
88-merge-sorted-array
905-sort-array-by-parity
905-sort-array-by-parity
94-binary-tree-inorder-traversal
94-binary-tree-inorder-traversal
Matrix Exponentiation - GFG
Matrix Exponentiation - GFG
README.md
README.md
View all files
README.md
LeetCode-CPP
Collection of LeetCode questions to ace the coding interview! - Created using
LeetHub
You can’t perform that action at this time.