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 }}
Stonre
/
Algorithm-coding-problem
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
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.