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 }}
liupengs
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Issues
0
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
212 Commits
212 Commits
.gitattributes
.gitattributes
.gitignore
.gitignore
202 Happy Number.c
202 Happy Number.c
3Sum Closest.c
3Sum Closest.c
3Sum.c
3Sum.c
4Sum.c
4Sum.c
Add Binary.c
Add Binary.c
Add Two Numbers.c
Add Two Numbers.c
Add and Search Word - Data structure design.c
Add and Search Word - Data structure design.c
AddDigits.c
AddDigits.c
Balanced Binary Tree.c
Balanced Binary Tree.c
Basic Calculator II.c
Basic Calculator II.c
Basic Calculator.c
Basic Calculator.c
BestTimetoBuyandSellStock.c
BestTimetoBuyandSellStock.c
BestTimetoBuyandSellStockII.c
BestTimetoBuyandSellStockII.c
Binary Tree Inorder Traversal.py
Binary Tree Inorder Traversal.py
Binary Tree Maximum Path Sum.c
Binary Tree Maximum Path Sum.c
Binary Tree Right Side View.c
Binary Tree Right Side View.c
Binary TreePostorderTraversal.c
Binary TreePostorderTraversal.c
BinaryTreePaths.py
BinaryTreePaths.py
BinaryTreePreorderTraversal.c
BinaryTreePreorderTraversal.c
BitwiseANDofNumbersRange.c
BitwiseANDofNumbersRange.c
Bulb Switcher.c
Bulb Switcher.c
Candy.c
Candy.c
Climbing Stairs.c
Climbing Stairs.c
Clone Graph.py
Clone Graph.py
Combination Sum II.c
Combination Sum II.c
Combination Sum III.py
Combination Sum III.py
Combination Sum.c
Combination Sum.c
Combinations.c
Combinations.c
Compare Version Numbers.c
Compare Version Numbers.c
Container With Most Water.c
Container With Most Water.c
Contains Duplicate III.c
Contains Duplicate III.c
Convert Sorted Array to Binary Search Tree.c
Convert Sorted Array to Binary Search Tree.c
Count Complete Tree Nodes.c
Count Complete Tree Nodes.c
Count Primes.c
Count Primes.c
Count and Say.py
Count and Say.py
CourseSchedule.c
CourseSchedule.c
CourseScheduleII.c
CourseScheduleII.c
Decode Ways.c
Decode Ways.c
DeleteNodeinaLinkedList.c
DeleteNodeinaLinkedList.c
Different Ways to Add Parentheses.c
Different Ways to Add Parentheses.c
Divide Two Integers.c
Divide Two Integers.c
EditDistance.c
EditDistance.c
Evaluate Reverse Polish Notation .c
Evaluate Reverse Polish Notation .c
Excel Sheet Column Number.c
Excel Sheet Column Number.c
Excel Sheet Column Title.c
Excel Sheet Column Title.c
Factorial Trailing Zeroes.c
Factorial Trailing Zeroes.c
Find Minimum in Rotated Sorted Array.c
Find Minimum in Rotated Sorted Array.c
Find Peak Element.c
Find Peak Element.c
Find the Duplicate Number.c
Find the Duplicate Number.c
First Bad Version.c
First Bad Version.c
First Missing Positive.c
First Missing Positive.c
Flatten Binary Tree to Linked List.c
Flatten Binary Tree to Linked List.c
Fraction to Recurring Decimal.c
Fraction to Recurring Decimal.c
Gas Station.c
Gas Station.c
Generate Parentheses.c
Generate Parentheses.c
Gray Code.c
Gray Code.c
H-Index II.c
H-Index II.c
H-Index.c
H-Index.c
Happy Number.c
Happy Number.c
HouseRobber.c
HouseRobber.c
HouseRobberII.c
HouseRobberII.c
Implement Queue using Stacks.c
Implement Queue using Stacks.c
Implement Trie (Prefix Tree).c
Implement Trie (Prefix Tree).c
Implement strStr.c
Implement strStr.c
Insert Interval.c
Insert Interval.c
InsertionSortList.c
InsertionSortList.c
Integer to Roman.c
Integer to Roman.c
IntersectionOfTwoLinkedLists.c
IntersectionOfTwoLinkedLists.c
Isomorphic Strings.c
Isomorphic Strings.c
Jump Game II.c
Jump Game II.c
Jump Game.c
Jump Game.c
Kth Largest Element in an Array.c
Kth Largest Element in an Array.c
LRUCache.c
LRUCache.c
Largest Rectangle in Histogram.c
Largest Rectangle in Histogram.c
Length of Last Word.c
Length of Last Word.c
Letter Combinations of a Phone Number.py
Letter Combinations of a Phone Number.py
Linked List Cycle II.c
Linked List Cycle II.c
LinkedListCycle.c
LinkedListCycle.c
Longest Increasing Subsequence.c
Longest Increasing Subsequence.c
Longest Palindromic Substring.c
Longest Palindromic Substring.c
Longest Substring Without Repeating Characters.c
Longest Substring Without Repeating Characters.c
Longest Valid Parentheses.c
Longest Valid Parentheses.c
LongestCommonPrefix.c
LongestCommonPrefix.c
Lowest Common Ancestor of a Binary Tree.c
Lowest Common Ancestor of a Binary Tree.c
Majority Element II.c
Majority Element II.c
MajorityElement .c
MajorityElement .c
Max Points on a Line.py
Max Points on a Line.py
Maximal Rectangle.c
Maximal Rectangle.c
Maximal Square.c
Maximal Square.c
Maximum Product Subarray.c
Maximum Product Subarray.c
Maximum Subarray.c
Maximum Subarray.c
MaximumDepthofBinaryTree.c
MaximumDepthofBinaryTree.c
Median of Two Sorted Arrays.c
Median of Two Sorted Arrays.c
Merge Intervals.c
Merge Intervals.c
Merge Sorted Array.c
Merge Sorted Array.c
Merge Two Sorted Lists.c
Merge Two Sorted Lists.c
Merge k Sorted Lists.c
Merge k Sorted Lists.c
Min Stack.c
Min Stack.c
View all files
Repository files navigation
README
More
items
LeetCode
我的leetCode代码
About
我的leetCode代码
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
1
fork
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.