Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
tan5166
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
No description, website, or topics provided.
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
14 Commits
14 Commits
Folders and files
Name
Name
Last commit message
Last commit date
0. Templete
0. Templete
1011. Capacity To Ship Packages Within D Days
1011. Capacity To Ship Packages Within D Days
102. Binary Tree Level Order Traversal
102. Binary Tree Level Order Traversal
1025. Divisor Game
1025. Divisor Game
1026. Maximum Difference Between Node and Ancestor
1026. Maximum Difference Between Node and Ancestor
1043. Partition Array for Maximum Sum
1043. Partition Array for Maximum Sum
1051. Height Checker
1051. Height Checker
1079. Letter Tile Possibilities
1079. Letter Tile Possibilities
108. Convert Sorted Array to Binary Search Tree
108. Convert Sorted Array to Binary Search Tree
109. Convert Sorted List to Binary Search Tree
109. Convert Sorted List to Binary Search Tree
1090. Largest Values From Labels
1090. Largest Values From Labels
11. Container With Most Water
11. Container With Most Water
110. Balanced Binary Tree
110. Balanced Binary Tree
111. Minimum Depth of Binary Tree
111. Minimum Depth of Binary Tree
112. Path Sum
112. Path Sum
1122. Relative Sort Array
1122. Relative Sort Array
113. Path Sum II
113. Path Sum II
1137. N-th Tribonacci Number
1137. N-th Tribonacci Number
114. Flatten Binary Tree to Linked List
114. Flatten Binary Tree to Linked List
118. Pascal's Triangle
118. Pascal's Triangle
119. Pascal's Triangle II
119. Pascal's Triangle II
120. Triangle
120. Triangle
121. Best Time to Buy and Sell Stock
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
122. Best Time to Buy and Sell Stock II
1235. Maximum Profit in Job Scheduling
1235. Maximum Profit in Job Scheduling
1237. Find Positive Integer Solution for a Given Equation
1237. Find Positive Integer Solution for a Given Equation
125. Valid Palindrome
125. Valid Palindrome
1277. Count Square Submatrices with All Ones
1277. Count Square Submatrices with All Ones
1283. Find the Smallest Divisor Given a Threshold
1283. Find the Smallest Divisor Given a Threshold
129. Sum Root to Leaf Numbers
129. Sum Root to Leaf Numbers
130. Surrounded Regions
130. Surrounded Regions
1302. Deepest Leaves Sum
1302. Deepest Leaves Sum
1305. All Elements in Two Binary Search Trees
1305. All Elements in Two Binary Search Trees
1315. Sum of Nodes with Even-Valued Grandparent
1315. Sum of Nodes with Even-Valued Grandparent
134. Gas Station
134. Gas Station
1347. Minimum Number of Steps to Make Two Strings Anagram
1347. Minimum Number of Steps to Make Two Strings Anagram
1351. Count Negative Numbers in a Sorted Matrix
1351. Count Negative Numbers in a Sorted Matrix
1353. Maximum Number of Events That Can Be Attended
1353. Maximum Number of Events That Can Be Attended
136. Single Number
136. Single Number
1382. Balance a Binary Search Tree
1382. Balance a Binary Search Tree
141. Linked List Cycle
141. Linked List Cycle
1423. Maximum Points You Can Obtain from Cards
1423. Maximum Points You Can Obtain from Cards
1424. Diagonal Traverse II
1424. Diagonal Traverse II
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
144. Binary Tree Preorder Traversal
144. Binary Tree Preorder Traversal
145. Binary Tree Postorder Traversal
145. Binary Tree Postorder Traversal
148. Sort List
148. Sort List
1480. Running Sum of 1d Array
1480. Running Sum of 1d Array
15. 3Sum
15. 3Sum
1518. Water Bottles
1518. Water Bottles
1552. Magnetic Force Between Two Balls
1552. Magnetic Force Between Two Balls
1638. Count Substrings That Differ by One Character
1638. Count Substrings That Differ by One Character
1641. Count Sorted Vowel Strings
1641. Count Sorted Vowel Strings
1668. Maximum Repeating Substring
1668. Maximum Repeating Substring
167. Two Sum II - Input Array Is Sorted
167. Two Sum II - Input Array Is Sorted
168. Excel Sheet Column Title
168. Excel Sheet Column Title
169. Majority Element
169. Majority Element
171. Excel Sheet Column Number
171. Excel Sheet Column Number
1752. Check if Array Is Sorted and Rotated
1752. Check if Array Is Sorted and Rotated
1768. Merge Strings Alternately
1768. Merge Strings Alternately
1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
1863. Sum of All Subset XOR Totals
1863. Sum of All Subset XOR Totals
1870. Minimum Speed to Arrive on Time
1870. Minimum Speed to Arrive on Time
1877. Minimize Maximum Pair Sum in Array
1877. Minimize Maximum Pair Sum in Array
1884. Egg Drop With 2 Eggs and N Floors
1884. Egg Drop With 2 Eggs and N Floors
190. Reverse Bits
190. Reverse Bits
191. Number of 1 Bits
191. Number of 1 Bits
1921. Eliminate Maximum Number of Monsters
1921. Eliminate Maximum Number of Monsters
1937. Maximum Number of Points with Cost
1937. Maximum Number of Points with Cost
1947. Maximum Compatibility Score Sum
1947. Maximum Compatibility Score Sum
1952. Three Divisors
1952. Three Divisors
1959. Minimum Total Space Wasted With K Resizing Operations
1959. Minimum Total Space Wasted With K Resizing Operations
1963. Minimum Number of Swaps to Make the String Balanced
1963. Minimum Number of Swaps to Make the String Balanced
1974. Minimum Time to Type Word Using Special Typewriter
1974. Minimum Time to Type Word Using Special Typewriter
1976. Number of Ways to Arrive at Destination
1976. Number of Ways to Arrive at Destination
198. House Robber
198. House Robber
1981. Minimize the Difference Between Target and Chosen Elements
1981. Minimize the Difference Between Target and Chosen Elements
1984. Minimum Difference Between Highest and Lowest of K Scores
1984. Minimum Difference Between Highest and Lowest of K Scores
1986. Minimum Number of Work Sessions to Finish the Tasks
1986. Minimum Number of Work Sessions to Finish the Tasks
2000. Reverse Prefix of Word
2000. Reverse Prefix of Word
2008. Maximum Earnings From Taxi
2008. Maximum Earnings From Taxi
202. Happy Number
202. Happy Number
2023. Number of Pairs of Strings With Concatenation Equal to Target
2023. Number of Pairs of Strings With Concatenation Equal to Target
203. Remove Linked List Elements
203. Remove Linked List Elements
2037. Minimum Number of Moves to Seat Everyone
2037. Minimum Number of Moves to Seat Everyone
2044. Count Number of Maximum Bitwise-OR Subsets
2044. Count Number of Maximum Bitwise-OR Subsets
209. Minimum Size Subarray Sum
209. Minimum Size Subarray Sum
21. Merge Two Sorted Lists
21. Merge Two Sorted Lists
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
215. Kth Largest Element in an Array
215. Kth Largest Element in an Array
2161. Partition Array According to Given Pivot
2161. Partition Array According to Given Pivot
217. Contains Duplicate
217. Contains Duplicate
2185. Counting Words With a Given Prefix
2185. Counting Words With a Given Prefix
22. Generate Parentheses
22. Generate Parentheses
221. Maximal Square
221. Maximal Square
2225. Find Players With Zero or One Losses
2225. Find Players With Zero or One Losses
2236. Root Equals Sum of Children
2236. Root Equals Sum of Children
226. Invert Binary Tree
226. Invert Binary Tree
2265. Count Nodes Equal to Average of Subtree
2265. Count Nodes Equal to Average of Subtree
View all files
Repository files navigation
README
More
items
Leetcode-Solution
C++ Solution of some leetcode problems.
ToDo:
Adding Explanation to all problems.
About
No description, website, or topics provided.
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.