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 }}
hellodengfei
leetcode-java
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
leetcode-java
/
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-java
/
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.