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
Developer articles
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 }}
Stonre
Algorithm-coding-problem
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Algorithm-coding-problem
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
This is a repository for algorithm coding problems at Leetcode
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
3 Commits
3 Commits
Folders and files
Name
Name
Last commit message
Last commit date
EvaluateReversePolishNotation
EvaluateReversePolishNotation
FlattenNestedListIterator
FlattenNestedListIterator
Graph Valid Tree
Graph Valid Tree
ImplementQueueusingStacks
ImplementQueueusingStacks
ImplementStackusingQueues
ImplementStackusingQueues
LargestRectangleinHistogram
LargestRectangleinHistogram
LongestConsecutiveSequence
LongestConsecutiveSequence
MaximalRectangle
MaximalRectangle
Number of ConnectedComponentsinanUndirectedGraph
Number of ConnectedComponentsinanUndirectedGraph
NumberofIslandII
NumberofIslandII
SimplifyPath
SimplifyPath
SurroundedRegions
SurroundedRegions
TrappingRainWater
TrappingRainWater
VerifyPreorderSequenceinBinarySearchTree
VerifyPreorderSequenceinBinarySearchTree
VerifyPreorderSerializationofaBinaryTree
VerifyPreorderSerializationofaBinaryTree
15.3Sum1.cpp
15.3Sum1.cpp
3summ.cpp
3summ.cpp
Add Binary.cpp
Add Binary.cpp
Add Digits.cpp
Add Digits.cpp
Balanced Binary Tree.cpp
Balanced Binary Tree.cpp
Best Time to Buy and Sell Stock II.cpp
Best Time to Buy and Sell Stock II.cpp
Best Time to Buy and Sell Stock with Cooldown.cpp
Best Time to Buy and Sell Stock with Cooldown.cpp
Best Time to Buy and Sell Stock.cpp
Best Time to Buy and Sell Stock.cpp
Binary Search Tree Iterator.cpp
Binary Search Tree Iterator.cpp
Binary Tree Inorder Traversal.cpp
Binary Tree Inorder Traversal.cpp
Binary Tree Level Order Traversal II.cpp
Binary Tree Level Order Traversal II.cpp
Binary Tree Level Order Traversal.cpp
Binary Tree Level Order Traversal.cpp
Binary Tree Maximum Path Sum.cpp
Binary Tree Maximum Path Sum.cpp
Binary Tree Paths.cpp
Binary Tree Paths.cpp
Binary Tree Right Side View.cpp
Binary Tree Right Side View.cpp
Binary Tree Zigzag Level Order Traversal.cpp
Binary Tree Zigzag Level Order Traversal.cpp
Combination Sum.cpp
Combination Sum.cpp
Combination Sum2.cpp
Combination Sum2.cpp
Combination Sum3.cpp
Combination Sum3.cpp
Combinations.cpp
Combinations.cpp
Contains Duplicate II.cpp
Contains Duplicate II.cpp
Convert Sorted Array to Binary Search Tree.cpp
Convert Sorted Array to Binary Search Tree.cpp
Count Complete Tree Nodes.cpp
Count Complete Tree Nodes.cpp
Count Primes.cpp
Count Primes.cpp
Count and Say.cpp
Count and Say.cpp
Decode Ways.cpp
Decode Ways.cpp
Excel Sheet Column Number.cpp
Excel Sheet Column Number.cpp
Excel Sheet Column Title.cpp
Excel Sheet Column Title.cpp
Flatten Binary Tree to Linked List.cpp
Flatten Binary Tree to Linked List.cpp
Generate Parentheses.cpp
Generate Parentheses.cpp
Happy Number.cpp
Happy Number.cpp
Implement strStr().cpp
Implement strStr().cpp
Insersionsortlist.cpp
Insersionsortlist.cpp
Intersection of Two Linked Lists.cpp
Intersection of Two Linked Lists.cpp
Isomorphic String.cpp
Isomorphic String.cpp
Kth Smallest Element in a BST.cpp
Kth Smallest Element in a BST.cpp
Length of Last Word.cpp
Length of Last Word.cpp
Linked List Cycle II.cpp
Linked List Cycle II.cpp
Longest Common Prefix.cpp
Longest Common Prefix.cpp
Longest Substring with At Most Two Distinct Characters.cpp
Longest Substring with At Most Two Distinct Characters.cpp
Lowest Common Ancestor of a Binary Tree.cpp
Lowest Common Ancestor of a Binary Tree.cpp
Maximal Square.cpp
Maximal Square.cpp
Maximum Depth of Binary Tree.cpp
Maximum Depth of Binary Tree.cpp
Maximum Subarray.cpp
Maximum Subarray.cpp
Merge Sorted Array.cpp
Merge Sorted Array.cpp
Minimum Path Sum.cpp
Minimum Path Sum.cpp
Minimum Size Subarray Sum.cpp
Minimum Size Subarray Sum.cpp
Move Zeroes.cpp
Move Zeroes.cpp
Number of Islands.cpp
Number of Islands.cpp
Paint House II.cpp
Paint House II.cpp
Palindrome Linked List.cpp
Palindrome Linked List.cpp
Palindrome Number.cpp
Palindrome Number.cpp
Palindrome Partitioning.cpp
Palindrome Partitioning.cpp
Pascal's Triangle II.cpp
Pascal's Triangle II.cpp
Pascal's Triangle.cpp
Pascal's Triangle.cpp
Path Sum.cpp
Path Sum.cpp
Path SumII.cpp
Path SumII.cpp
Perfect Squares.cpp
Perfect Squares.cpp
Permutations.cpp
Permutations.cpp
Populating Next Right Pointers in Each Node.cpp
Populating Next Right Pointers in Each Node.cpp
Power of Two.cpp
Power of Two.cpp
Product of Array Except Self.cpp
Product of Array Except Self.cpp
README.md
README.md
Recover Binary Search Tree.cpp
Recover Binary Search Tree.cpp
Rectangle Area.cpp
Rectangle Area.cpp
Remove Duplicates from Sorted LIst.cpp
Remove Duplicates from Sorted LIst.cpp
Remove Element.cpp
Remove Element.cpp
Remove Nth Node From End of List.cpp
Remove Nth Node From End of List.cpp
Reverse Linked List.cpp
Reverse Linked List.cpp
Reverse Words in a String II.cpp
Reverse Words in a String II.cpp
Serialize and Deserialize Binary Tree.cpp
Serialize and Deserialize Binary Tree.cpp
Shortest Word Distance.cpp
Shortest Word Distance.cpp
Sort List.cpp
Sort List.cpp
String to Integer (atoi).cpp
String to Integer (atoi).cpp
Subsets.cpp
Subsets.cpp
Sum_root_to_leaf_numbers.cpp
Sum_root_to_leaf_numbers.cpp
Summary Ranges.cpp
Summary Ranges.cpp
Symmetric Tree.cpp
Symmetric Tree.cpp
Ugly Number.cpp
Ugly Number.cpp
Unique Binary Search Trees.cpp
Unique Binary Search Trees.cpp
Unique Paths.cpp
Unique Paths.cpp
Unique Word Abbreviation.cpp
Unique Word Abbreviation.cpp
Valid Palindrome.cpp
Valid Palindrome.cpp
Valid Parentheses.cpp
Valid Parentheses.cpp
Validate Binary Search Tree for yi fing.cpp
Validate Binary Search Tree for yi fing.cpp
View all files
Repository files navigation
README
More
items
Algorithm-coding-problem
About
This is a repository for algorithm coding problems at Leetcode
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.