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 }}
Gforky
LeetCode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
Documents of practice code for further study(In JAVA)
Resources
Readme
Activity
Stars
0
stars
Watchers
2
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
114 Commits
114 Commits
Folders and files
Name
Name
Last commit message
Last commit date
3Sum Closest
3Sum Closest
4Sum
4Sum
Add Binary
Add Binary
Add Two Numbers
Add Two Numbers
Anagrams
Anagrams
Balanced Binary Tree
Balanced Binary Tree
Best Time to Buy and Sell Stock (No more than one transaction)
Best Time to Buy and Sell Stock (No more than one transaction)
Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock III
Best Time to Buy and Sell Stock III
Binary Tree Inorder Traversal (Iteratively)
Binary Tree Inorder Traversal (Iteratively)
Binary Tree Inorder Traversal (Recursive)
Binary Tree Inorder Traversal (Recursive)
Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal II
Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order Traversal
Climbing Stairs
Climbing Stairs
Combination Sum
Combination Sum
Combination Sum II
Combination Sum II
Combinations
Combinations
Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal
Container With Most Water
Container With Most Water
Convert Sorted Array to Binary Search Tree
Convert Sorted Array to Binary Search Tree
Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search Tree
Count and Say
Count and Say
Distinct Subsequences
Distinct Subsequences
Edit Distance
Edit Distance
First Missing Positive
First Missing Positive
Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked List
Gas Station
Gas Station
Generate Parentheses
Generate Parentheses
Gray Code
Gray Code
Integer to Roman
Integer to Roman
Jump Game
Jump Game
Jump Game II
Jump Game II
Length of Last Word
Length of Last Word
Letter Combinations of a Phone Number
Letter Combinations of a Phone Number
Linked List Cycle
Linked List Cycle
Longest Common Prefix
Longest Common Prefix
Longest Consecutive Sequence
Longest Consecutive Sequence
Longest Palindromic Substring
Longest Palindromic Substring
Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters
Max Depth of Binary Tree
Max Depth of Binary Tree
Maximum Subarray (O(n)) solution
Maximum Subarray (O(n)) solution
Median of Two Sorted Arrays
Median of Two Sorted Arrays
Merge Two Sorted Lists
Merge Two Sorted Lists
Merge k Sorted Lists
Merge k Sorted Lists
Merge sorted array
Merge sorted array
Minimum Depth of Binary Tree
Minimum Depth of Binary Tree
Minimum Path Sum
Minimum Path Sum
N-Queens
N-Queens
N-Queens II
N-Queens II
Next Permutation
Next Permutation
Palindrome Number
Palindrome Number
Palindrome Partitioning
Palindrome Partitioning
Partition List
Partition List
Pascal's Triangle
Pascal's Triangle
Pascal's Triangle II
Pascal's Triangle II
Path Sum
Path Sum
Path Sum II
Path Sum II
Permutation
Permutation
Permutations II
Permutations II
Plus One
Plus One
Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each Node II
Populating Next Right Pointers in Each Node II
Pow(x, n)
Pow(x, n)
README.md
README.md
Recover Binary Search Tree
Recover Binary Search Tree
Recover Binary Search Tree( C++)
Recover Binary Search Tree( C++)
Remove Duplicates from Sorted Array II
Remove Duplicates from Sorted Array II
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II
Remove Duplicates from sorted array
Remove Duplicates from sorted array
Remove Duplicates from sorted list
Remove Duplicates from sorted list
Remove Element
Remove Element
Remove Nth Node From End of List
Remove Nth Node From End of List
Reverse Digits of Integer
Reverse Digits of Integer
Reverse Linked List II
Reverse Linked List II
Reverse Nodes in k-Group
Reverse Nodes in k-Group
Roman to integer
Roman to integer
Rotate Image
Rotate Image
Rotate List
Rotate List
Same Binary Tree
Same Binary Tree
Search Insert Position
Search Insert Position
Search a 2D Matrix
Search a 2D Matrix
Search for a Range
Search for a Range
Search in Rotated Sorted Array
Search in Rotated Sorted Array
Search in Rotated Sorted Array II
Search in Rotated Sorted Array II
Search in Rotated Sorted Array(Better Solution)
Search in Rotated Sorted Array(Better Solution)
Set Matrix Zeroes
Set Matrix Zeroes
Set Matrix Zeroes (Constant Space)
Set Matrix Zeroes (Constant Space)
Single Number
Single Number
Single Number II
Single Number II
Sort Colors
Sort Colors
Spiral Matrix II
Spiral Matrix II
Sqrt(x)
Sqrt(x)
Submission Details(Better Solution)
Submission Details(Better Solution)
Subsets
Subsets
Subsets II
Subsets II
Sum Root to Leaf Numbers
Sum Root to Leaf Numbers
Swap Nodes in Pairs
Swap Nodes in Pairs
Symmetric Tree
Symmetric Tree
Trapping Rain Water
Trapping Rain Water
View all files
Repository files navigation
README
More
items
LeetCode
Documents of practice code for further study
About
Documents of practice code for further study(In JAVA)
Resources
Readme
Activity
Stars
0
stars
Watchers
2
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.