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 }}
KKStudyCoding
/
leetcode
Public
forked from
doocs/leetcode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
leetcode
/
solution
/
0100-0199
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
leetcode
/
solution
/
0100-0199
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0100.Same Tree
0100.Same Tree
0101.Symmetric Tree
0101.Symmetric Tree
0102.Binary Tree Level Order Traversal
0102.Binary Tree Level Order Traversal
0103.Binary Tree Zigzag Level Order Traversal
0103.Binary Tree Zigzag Level Order Traversal
0104.Maximum Depth of Binary Tree
0104.Maximum Depth of Binary Tree
0105.Construct Binary Tree from Preorder and Inorder Traversal
0105.Construct Binary Tree from Preorder and Inorder Traversal
0106.Construct Binary Tree from Inorder and Postorder Traversal
0106.Construct Binary Tree from Inorder and Postorder Traversal
0107.Binary Tree Level Order Traversal II
0107.Binary Tree Level Order Traversal II
0108.Convert Sorted Array to Binary Search Tree
0108.Convert Sorted Array to Binary Search Tree
0109.Convert Sorted List to Binary Search Tree
0109.Convert Sorted List to Binary Search Tree
0110.Balanced Binary Tree
0110.Balanced Binary Tree
0111.Minimum Depth of Binary Tree
0111.Minimum Depth of Binary Tree
0112.Path Sum
0112.Path Sum
0113.Path Sum II
0113.Path Sum II
0114.Flatten Binary Tree to Linked List
0114.Flatten Binary Tree to Linked List
0115.Distinct Subsequences
0115.Distinct Subsequences
0116.Populating Next Right Pointers in Each Node
0116.Populating Next Right Pointers in Each Node
0117.Populating Next Right Pointers in Each Node II
0117.Populating Next Right Pointers in Each Node II
0118.Pascal's Triangle
0118.Pascal's Triangle
0119.Pascal's Triangle II
0119.Pascal's Triangle II
0120.Triangle
0120.Triangle
0121.Best Time to Buy and Sell Stock
0121.Best Time to Buy and Sell Stock
0122.Best Time to Buy and Sell Stock II
0122.Best Time to Buy and Sell Stock II
0123.Best Time to Buy and Sell Stock III
0123.Best Time to Buy and Sell Stock III
0124.Binary Tree Maximum Path Sum
0124.Binary Tree Maximum Path Sum
0125.Valid Palindrome
0125.Valid Palindrome
0126.Word Ladder II
0126.Word Ladder II
0127.Word Ladder
0127.Word Ladder
0128.Longest Consecutive Sequence
0128.Longest Consecutive Sequence
0129.Sum Root to Leaf Numbers
0129.Sum Root to Leaf Numbers
0130.Surrounded Regions
0130.Surrounded Regions
0131.Palindrome Partitioning
0131.Palindrome Partitioning
0132.Palindrome Partitioning II
0132.Palindrome Partitioning II
0133.Clone Graph
0133.Clone Graph
0134.Gas Station
0134.Gas Station
0135.Candy
0135.Candy
0136.Single Number
0136.Single Number
0137.Single Number II
0137.Single Number II
0138.Copy List with Random Pointer
0138.Copy List with Random Pointer
0139.Word Break
0139.Word Break
0140.Word Break II
0140.Word Break II
0141.Linked List Cycle
0141.Linked List Cycle
0142.Linked List Cycle II
0142.Linked List Cycle II
0143.Reorder List
0143.Reorder List
0144.Binary Tree Preorder Traversal
0144.Binary Tree Preorder Traversal
0145.Binary Tree Postorder Traversal
0145.Binary Tree Postorder Traversal
0146.Lru Cache
0146.Lru Cache
0147.Insertion Sort List
0147.Insertion Sort List
0148.Sort List
0148.Sort List
0149.Max Points on a Line
0149.Max Points on a Line
0150.Evaluate Reverse Polish Notation
0150.Evaluate Reverse Polish Notation
0151.Reverse Words in a String
0151.Reverse Words in a String
0152.Maximum Product Subarray
0152.Maximum Product Subarray
0153.Find Minimum in Rotated Sorted Array
0153.Find Minimum in Rotated Sorted Array
0154.Find Minimum in Rotated Sorted Array II
0154.Find Minimum in Rotated Sorted Array II
0155.Min Stack
0155.Min Stack
0156.Binary Tree Upside Down
0156.Binary Tree Upside Down
0157.Read N Characters Given Read4
0157.Read N Characters Given Read4
0158.Read N Characters Given Read4 II - Call multiple times
0158.Read N Characters Given Read4 II - Call multiple times
0159.Longest Substring with At Most Two Distinct Characters
0159.Longest Substring with At Most Two Distinct Characters
0160.Intersection of Two Linked Lists
0160.Intersection of Two Linked Lists
0161.One Edit Distance
0161.One Edit Distance
0162.Find Peak Element
0162.Find Peak Element
0163.Missing Ranges
0163.Missing Ranges
0164.Maximum Gap
0164.Maximum Gap
0165.Compare Version Numbers
0165.Compare Version Numbers
0166.Fraction to Recurring Decimal
0166.Fraction to Recurring Decimal
0167.Two Sum II - Input array is sorted
0167.Two Sum II - Input array is sorted
0168.Excel Sheet Column Title
0168.Excel Sheet Column Title
0169.Majority Element
0169.Majority Element
0170.Two Sum III - Data structure design
0170.Two Sum III - Data structure design
0171.Excel Sheet Column Number
0171.Excel Sheet Column Number
0172.Factorial Trailing Zeroes
0172.Factorial Trailing Zeroes
0173.Binary Search Tree Iterator
0173.Binary Search Tree Iterator
0174.Dungeon Game
0174.Dungeon Game
0175.Combine Two Tables
0175.Combine Two Tables
0176.Second Highest Salary
0176.Second Highest Salary
0177.Nth Highest Salary
0177.Nth Highest Salary
0178.Rank Scores
0178.Rank Scores
0179.Largest Number
0179.Largest Number
0180.Consecutive Numbers
0180.Consecutive Numbers
0181.Employees Earning More Than Their Managers
0181.Employees Earning More Than Their Managers
0182.Duplicate Emails
0182.Duplicate Emails
0183.Customers Who Never Order
0183.Customers Who Never Order
0184.Department Highest Salary
0184.Department Highest Salary
0185.Department Top Three Salaries
0185.Department Top Three Salaries
0186.Reverse Words in a String II
0186.Reverse Words in a String II
0187.Repeated DNA Sequences
0187.Repeated DNA Sequences
0188.Best Time to Buy and Sell Stock IV
0188.Best Time to Buy and Sell Stock IV
0189.Rotate Array
0189.Rotate Array
0190.Reverse Bits
0190.Reverse Bits
0191.Number of 1 Bits
0191.Number of 1 Bits
0192.Word Frequency
0192.Word Frequency
0193.Valid Phone Numbers
0193.Valid Phone Numbers
0194.Transpose File
0194.Transpose File
0195.Tenth Line
0195.Tenth Line
0196.Delete Duplicate Emails
0196.Delete Duplicate Emails
0197.Rising Temperature
0197.Rising Temperature
0198.House Robber
0198.House Robber
0199.Binary Tree Right Side View
0199.Binary Tree Right Side View
View all files
You can’t perform that action at this time.