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 }}
listenbehind
/
LeetCode
Public
forked from
LjyYano/LeetCode
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
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
33 Commits
33 Commits
.gitattributes
.gitattributes
.gitignore
.gitignore
L001_Two_Sum.java
L001_Two_Sum.java
L002_Add_Two_Numbers.java
L002_Add_Two_Numbers.java
L003_Longest_Substring_Without_Repeating_Characters.java
L003_Longest_Substring_Without_Repeating_Characters.java
L005_Longest_Palindromic_Substring.java
L005_Longest_Palindromic_Substring.java
L007_Reverse_Integer.java
L007_Reverse_Integer.java
L008_String_to_Integer.java
L008_String_to_Integer.java
L009_Palindrome_Number.java
L009_Palindrome_Number.java
L011_Container_With_Most_Water.java
L011_Container_With_Most_Water.java
L012_Integer_to_Roman.java
L012_Integer_to_Roman.java
L014_Longest_Common_Prefix.java
L014_Longest_Common_Prefix.java
L015_3Sum.java
L015_3Sum.java
L016_3Sum_Closest.java
L016_3Sum_Closest.java
L017_Letter_Combinations_of_a_Phone_Number.java
L017_Letter_Combinations_of_a_Phone_Number.java
L018_4Sum.java
L018_4Sum.java
L019_Remove_Nth_Node_From_End_of_List.java
L019_Remove_Nth_Node_From_End_of_List.java
L020_Valid_Parentheses.java
L020_Valid_Parentheses.java
L021_Merge_Two_Sorted_Lists.java
L021_Merge_Two_Sorted_Lists.java
L022_Generate_Parentheses.java
L022_Generate_Parentheses.java
L024_Swap_Nodes_in_Pairs.java
L024_Swap_Nodes_in_Pairs.java
L026_Remove_Duplicates_from_Sorted_Array.java
L026_Remove_Duplicates_from_Sorted_Array.java
L027_Remove_Element.java
L027_Remove_Element.java
L028_Implement_strStr.java
L028_Implement_strStr.java
L029_Divide_Two_Integers.java
L029_Divide_Two_Integers.java
L031_Next_Permutation.java
L031_Next_Permutation.java
L033_Search_in_Rotated_Sorted_Array.java
L033_Search_in_Rotated_Sorted_Array.java
L034_Search_for_a_Range.java
L034_Search_for_a_Range.java
L035_Search_Insert_Position.java
L035_Search_Insert_Position.java
L036_Valid_Sudoku.java
L036_Valid_Sudoku.java
L038_Count_and_Say.java
L038_Count_and_Say.java
L039_Combination_Sum.java
L039_Combination_Sum.java
L040_Combination_Sum_II.java
L040_Combination_Sum_II.java
L043_Multiply_Strings.java
L043_Multiply_Strings.java
L046_Permutations.java
L046_Permutations.java
L047_Permutations_II.java
L047_Permutations_II.java
L048_Rotate_Image.java
L048_Rotate_Image.java
L049_Group_Anagrams.java
L049_Group_Anagrams.java
L050_Pow_x_n.java
L050_Pow_x_n.java
L053_Maximum_Subarray.java
L053_Maximum_Subarray.java
L054_Spiral_Matrix.java
L054_Spiral_Matrix.java
L055_Jump_Game.java
L055_Jump_Game.java
L058_Length_of_Last_Word.java
L058_Length_of_Last_Word.java
L059_Spiral_Matrix_II.java
L059_Spiral_Matrix_II.java
L060_Permutation_Sequence.java
L060_Permutation_Sequence.java
L061_Rotate_List.java
L061_Rotate_List.java
L062_Unique_Paths.java
L062_Unique_Paths.java
L063_Unique_Paths_II.java
L063_Unique_Paths_II.java
L064_Minimum_Path_Sum.java
L064_Minimum_Path_Sum.java
L065_Valid_Number.java
L065_Valid_Number.java
L066_Plus_One.java
L066_Plus_One.java
L067_Add_Binary.java
L067_Add_Binary.java
L068_Text_Justification.java
L068_Text_Justification.java
L069_Sqrt_x.java
L069_Sqrt_x.java
L070_Climbing_Stairs.java
L070_Climbing_Stairs.java
L071_Simplify_Path.java
L071_Simplify_Path.java
L072_Edit_Distance.java
L072_Edit_Distance.java
L073_Set_Matrix_Zeroes.java
L073_Set_Matrix_Zeroes.java
L074_Search_a_2D_Matrix.java
L074_Search_a_2D_Matrix.java
L075_Sort_Colors.java
L075_Sort_Colors.java
L077_Combinations.java
L077_Combinations.java
L078_Subsets.java
L078_Subsets.java
L079_Word_Search.java
L079_Word_Search.java
L080_Remove_Duplicates_from_Sorted_Array_II.java
L080_Remove_Duplicates_from_Sorted_Array_II.java
L081_Search_in_Rotated_Sorted_Array_II.java
L081_Search_in_Rotated_Sorted_Array_II.java
L082_Remove_Duplicates_from_Sorted_List_II.java
L082_Remove_Duplicates_from_Sorted_List_II.java
L083_Remove_Duplicates_from_Sorted_List.java
L083_Remove_Duplicates_from_Sorted_List.java
L088_Merge_Sorted_Array.java
L088_Merge_Sorted_Array.java
L089_Gray_Code.java
L089_Gray_Code.java
L090_Subsets_II.java
L090_Subsets_II.java
L091_Decode_Ways.java
L091_Decode_Ways.java
L092_Reverse_Linked_List_II.java
L092_Reverse_Linked_List_II.java
L093_Restore_IP_Addresses.java
L093_Restore_IP_Addresses.java
L094_Binary_Tree_Inorder_Traversal.java
L094_Binary_Tree_Inorder_Traversal.java
L095_Unique_Binary_Search_Trees_II.java
L095_Unique_Binary_Search_Trees_II.java
L096_Unique_Binary_Search_Trees.java
L096_Unique_Binary_Search_Trees.java
L098_Validate_Binary_Search_Tree.java
L098_Validate_Binary_Search_Tree.java
L100_Same_Tree.java
L100_Same_Tree.java
L101_Symmetric_Tree.java
L101_Symmetric_Tree.java
L102_Binary_Tree_Level_Order_Traversal.java
L102_Binary_Tree_Level_Order_Traversal.java
L103_Binary_Tree_Zigzag_Level_Order_Traversal.java
L103_Binary_Tree_Zigzag_Level_Order_Traversal.java
L104_Maximum_Depth_of_Binary_Tree.java
L104_Maximum_Depth_of_Binary_Tree.java
L105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.java
L105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.java
L106_Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal.java
L106_Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal.java
L107_Binary_Tree_Level_Order_Traversal_II.java
L107_Binary_Tree_Level_Order_Traversal_II.java
L108_Convert_Sorted_Array_to_Binary_Search_Tree.java
L108_Convert_Sorted_Array_to_Binary_Search_Tree.java
L109_Convert_Sorted_List_to_Binary_Search_Tree.java
L109_Convert_Sorted_List_to_Binary_Search_Tree.java
L110_Balanced_Binary_Tree.java
L110_Balanced_Binary_Tree.java
L111_Minimum_Depth_of_Binary_Tree.java
L111_Minimum_Depth_of_Binary_Tree.java
L112_Path_Sum.java
L112_Path_Sum.java
L113_Path_Sum_II.java
L113_Path_Sum_II.java
L114_Flatten_Binary_Tree_to_Linked_List.java
L114_Flatten_Binary_Tree_to_Linked_List.java
L116_Populating_Next_Right_Pointers_in_Each_Node.java
L116_Populating_Next_Right_Pointers_in_Each_Node.java
L118_Pascal_s_Triangle.java
L118_Pascal_s_Triangle.java
L119_Pascal_s_Triangle_II.java
L119_Pascal_s_Triangle_II.java
L120_Triangle.java
L120_Triangle.java
L121_Best_Time_to_Buy_and_Sell_Stock.java
L121_Best_Time_to_Buy_and_Sell_Stock.java
L122_Best_Time_to_Buy_and_Sell_Stock_II.java
L122_Best_Time_to_Buy_and_Sell_Stock_II.java
L125_Valid_Palindrome.java
L125_Valid_Palindrome.java
L129_Sum_Root_to_Leaf_Numbers.java
L129_Sum_Root_to_Leaf_Numbers.java
View all files
Repository files navigation
README
More
items
LeetCode
LeetCode Java Solution
Hello, I'm back~~~
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.