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
Type
/
to 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 }}
Kingpie
/
leetcode
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
236 Commits
236 Commits
1.Two Sum
1.Two Sum
100.Same Tree
100.Same Tree
1004. Max Consecutive Ones III
1004. Max Consecutive Ones III
102.Binary Tree Level Order Traversal
102.Binary Tree Level Order Traversal
1035.Uncrossed Lines
1035.Uncrossed Lines
104.Maximum Depth of Binary Tree
104.Maximum Depth of Binary Tree
1042.Flower Planting With No Adjacent
1042.Flower Planting With No Adjacent
1055.Shortest Way to From String
1055.Shortest Way to From String
1056.Confusing Number
1056.Confusing Number
107.Binary Tree Level Order Traversal II
107.Binary Tree Level Order Traversal II
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
1095.Find in Mountain Array
1095.Find in Mountain Array
11.Container With Most Water
11.Container With Most Water
110.Balanced Binary Tree
110.Balanced Binary Tree
1108.Defanging an IP Address
1108.Defanging an IP Address
111.Minimum Depth of Binary Tree
111.Minimum Depth of Binary Tree
1111.Maximum Nesting Depth of Two Valid Parentheses Strings
1111.Maximum Nesting Depth of Two Valid Parentheses Strings
1114.Print in Order
1114.Print in Order
1115.Print FooBar Alternately
1115.Print FooBar Alternately
1116.Print Zero Even Odd
1116.Print Zero Even Odd
1119.Remove Vowels from a String
1119.Remove Vowels from a String
112.Path Sum
112.Path Sum
113.Path Sum II
113.Path Sum II
1143.Longest Common Subsequence
1143.Longest Common Subsequence
116.Populating Next Right Pointers in Each Node
116.Populating Next Right Pointers in Each Node
1162.As Far from Land as Possible
1162.As Far from Land as Possible
118.Pascal's Triangle
118.Pascal's Triangle
1184.Distance Between Bus Stops
1184.Distance Between Bus Stops
119.Pascal's Triangle II
119.Pascal's Triangle II
1207.Unique Number of Occurrences
1207.Unique Number of Occurrences
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
1226.The Dining Philosophers
1226.The Dining Philosophers
1228.Missing Number In Arithmetic Progression
1228.Missing Number In Arithmetic Progression
123.Best Time to Buy and Sell Stock III
123.Best Time to Buy and Sell Stock III
1287.Element Appearing More Than 25% In Sorted Array
1287.Element Appearing More Than 25% In Sorted Array
129.Sum Root to Leaf Numbers
129.Sum Root to Leaf Numbers
1290.Convert Binary Number in a Linked List to Integer
1290.Convert Binary Number in a Linked List to Integer
1295.Find Numbers with Even Number of Digits
1295.Find Numbers with Even Number of Digits
130.Surrounded Regions
130.Surrounded Regions
1302.Deepest Leaves Sum
1302.Deepest Leaves Sum
1342.Number of Steps to Reduce a Number to Zero
1342.Number of Steps to Reduce a Number to Zero
1351.Count Negative Numbers in a Sorted Matrix
1351.Count Negative Numbers in a Sorted Matrix
136.Single Number
136.Single Number
1365.How Many Numbers Are Smaller Than the Current Number
1365.How Many Numbers Are Smaller Than the Current Number
138.Copy List with Random Pointer
138.Copy List with Random Pointer
1403.Minimum Subsequence in Non-Increasing Order
1403.Minimum Subsequence in Non-Increasing Order
141.Linked List Cycle
141.Linked List Cycle
142.Linked List Cycle II
142.Linked List Cycle II
144.Binary Tree Preorder Traversal
144.Binary Tree Preorder Traversal
145.Binary Tree Postorder Traversal
145.Binary Tree Postorder Traversal
152.Maximum Product Subarray
152.Maximum Product Subarray
160.Intersection of Two Linked Lists
160.Intersection of Two Linked Lists
161.One Edit Distance
161.One Edit Distance
162.Find Peak Element
162.Find Peak Element
169.Majority Element
169.Majority Element
175.Combine Two Tables
175.Combine Two Tables
188.Best Time to Buy and Sell Stock IV
188.Best Time to Buy and Sell Stock IV
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
191.Symmetric Tree
191.Symmetric Tree
198.House Robber
198.House Robber
199.Binary Tree Right Side View
199.Binary Tree Right Side View
2.Add Two Numbers
2.Add Two Numbers
20.Valid Parentheses
20.Valid Parentheses
200.Number of Islands
200.Number of Islands
202.Happy Number
202.Happy Number
203.Remove Linked List Elements
203.Remove Linked List Elements
204.Count Primes
204.Count Primes
206.Reverse Linked List
206.Reverse Linked List
209.Minimum Size Subarray Sum
209.Minimum Size Subarray Sum
21.Merge Two Sorted Lists
21.Merge Two Sorted Lists
213.House Robber II
213.House Robber II
215.Kth Largest Element In an Array
215.Kth Largest Element In an Array
217.Contains Duplicate
217.Contains Duplicate
219.Contains Duplicate II
219.Contains Duplicate II
22.Generate Parentheses
22.Generate Parentheses
220.Contains Duplicate III
220.Contains Duplicate III
226.Invert Binary Tree
226.Invert Binary Tree
23.Merge k Sorted Lists
23.Merge k Sorted Lists
230.Kth Smallest Element in a BST
230.Kth Smallest Element in a BST
231.Power of Two
231.Power of Two
234.Palindrome Linked List
234.Palindrome Linked List
237.Delete Node in a Linked List
237.Delete Node in a Linked List
24.Swap Nodes in Pairs
24.Swap Nodes in Pairs
246.Strobogrammatic Number
246.Strobogrammatic Number
256.Paint House
256.Paint House
257.Binary Tree Paths
257.Binary Tree Paths
258.Add Digits
258.Add Digits
26.Remove Duplicates from Sorted Array
26.Remove Duplicates from Sorted Array
260.Single Number III
260.Single Number III
263.Ugly Number
263.Ugly Number
264.Ugly Number II
264.Ugly Number II
265.Paint House II
265.Paint House II
268.Missing Number
268.Missing Number
27.Remove Element
27.Remove Element
276.Paint Fence
276.Paint Fence
278.First Bad Version
278.First Bad Version
286.Walls and Gates
286.Walls and Gates
View all files
Repository files navigation
README
Apache-2.0 license
More
items
leetcode
leetcode exercise
About
leetcode exercise
Resources
Readme
Apache-2.0 license
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.