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 }}
feiyilicare
LintCode
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
LintCode
/
Java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LintCode
/
Java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
2 Sum II - Input array is sorted.java
2 Sum II - Input array is sorted.java
2 Sum II.java
2 Sum II.java
2 Sum.java
2 Sum.java
3 Sum Closest.java
3 Sum Closest.java
3 Sum Smaller.java
3 Sum Smaller.java
3 Sum.java
3 Sum.java
4 Sum.java
4 Sum.java
A+B.java
A+B.java
Add Binary.java
Add Binary.java
Add Two Numbers II.java
Add Two Numbers II.java
Add Two Numbers.java
Add Two Numbers.java
Add and Search Word.java
Add and Search Word.java
Alien Dictionary.java
Alien Dictionary.java
Anagrams.java
Anagrams.java
Backpack II.java
Backpack II.java
Backpack.java
Backpack.java
Balanced Binary Tree.java
Balanced Binary Tree.java
Best Time to Buy and Sell Stock I.java
Best Time to Buy and Sell Stock I.java
Best Time to Buy and Sell Stock II.java
Best Time to Buy and Sell Stock II.java
Best Time to Buy and Sell Stock III .java
Best Time to Buy and Sell Stock III .java
Best Time to Buy and Sell Stock IV.java
Best Time to Buy and Sell Stock IV.java
Binary Representation.java
Binary Representation.java
Binary Search Tree Iterator.java
Binary Search Tree Iterator.java
Binary Tree Inorder Traversal.java
Binary Tree Inorder Traversal.java
Binary Tree Level Order Traversal II.java
Binary Tree Level Order Traversal II.java
Binary Tree Level Order Traversal.java
Binary Tree Level Order Traversal.java
Binary Tree Longest Consecutive Sequence.java
Binary Tree Longest Consecutive Sequence.java
Binary Tree Maximum Path Sum II.java
Binary Tree Maximum Path Sum II.java
Binary Tree Maximum Path Sum.java
Binary Tree Maximum Path Sum.java
Binary Tree Path Sum.java
Binary Tree Path Sum.java
Binary Tree Paths.java
Binary Tree Paths.java
Binary Tree Postorder Traversal.java
Binary Tree Postorder Traversal.java
Binary Tree Preorder Traversal.java
Binary Tree Preorder Traversal.java
Binary Tree Right Side View.java
Binary Tree Right Side View.java
Binary Tree Serialization.java
Binary Tree Serialization.java
Binary Tree Zigzag Level Order Traversal.java
Binary Tree Zigzag Level Order Traversal.java
Building Outline.java
Building Outline.java
Burst Balloons.java
Burst Balloons.java
Change to Anagram.java
Change to Anagram.java
Classical Binary Search.java
Classical Binary Search.java
Climbing Stairs.java
Climbing Stairs.java
Clone Graph.java
Clone Graph.java
Closest Binary Search Tree Value.java
Closest Binary Search Tree Value.java
Closest Number in Sorted Array.java
Closest Number in Sorted Array.java
Coins in a Line.java
Coins in a Line.java
ColorGrid.java
ColorGrid.java
Combination Sum II.java
Combination Sum II.java
Combination Sum.java
Combination Sum.java
Combinations.java
Combinations.java
Compare Strings.java
Compare Strings.java
Complete Binary Tree.java
Complete Binary Tree.java
Construct Binary Tree from Inorder and Postorder Traversal.java
Construct Binary Tree from Inorder and Postorder Traversal.java
Construct Binary Tree from Inorder and Preorder Traversal.java
Construct Binary Tree from Inorder and Preorder Traversal.java
Container With Most Water.java
Container With Most Water.java
Convert Binary Search Tree to Doubly Linked List.java
Convert Binary Search Tree to Doubly Linked List.java
Convert Expression to Polish Notation.java
Convert Expression to Polish Notation.java
Convert Expression to Reverse Polish Notation.java
Convert Expression to Reverse Polish Notation.java
Convert Integer A to Integer B.java
Convert Integer A to Integer B.java
Convert Sorted Array to Binary Search Tree With Minimal Height.java
Convert Sorted Array to Binary Search Tree With Minimal Height.java
Convert Sorted List to Binary Search Tree.java
Convert Sorted List to Binary Search Tree.java
Copy List with Random Pointer.java
Copy List with Random Pointer.java
Cosine Similarity.java
Cosine Similarity.java
Count 1 in Binary.java
Count 1 in Binary.java
Count Primes.java
Count Primes.java
Count and Say.java
Count and Say.java
Count of Smaller Number before itself.java
Count of Smaller Number before itself.java
Count of Smaller Number.java
Count of Smaller Number.java
Course Schedule II.java
Course Schedule II.java
Course Schedule.java
Course Schedule.java
Data Stream Median.java
Data Stream Median.java
Delete Digits.java
Delete Digits.java
Delete Node in the Middle of Singly Linked List.java
Delete Node in the Middle of Singly Linked List.java
Distinct Subsequences.java
Distinct Subsequences.java
Edit Distance.java
Edit Distance.java
Encode and Decode Strings.java
Encode and Decode Strings.java
ExcelSheetColumnNumber .java
ExcelSheetColumnNumber .java
Expression Evaluation.java
Expression Evaluation.java
Expression Tree Build.java
Expression Tree Build.java
Fast Power.java
Fast Power.java
Fibonacci.java
Fibonacci.java
Find Minimum in Rotated Sorted Array II.java
Find Minimum in Rotated Sorted Array II.java
Find Minimum in Rotated Sorted Array.java
Find Minimum in Rotated Sorted Array.java
Find Peak Element II.java
Find Peak Element II.java
Find Peak Element.java
Find Peak Element.java
Find the Connected Component in the Undirected Graph.java
Find the Connected Component in the Undirected Graph.java
Find the Weak Connected Component in the Directed Graph.java
Find the Weak Connected Component in the Directed Graph.java
First Bad Version.java
First Bad Version.java
First Missing Positive.java
First Missing Positive.java
Flatten 2D Vector.java
Flatten 2D Vector.java
Flatten Binary Tree to Linked List.java
Flatten Binary Tree to Linked List.java
Flattern 2D Vector.java
Flattern 2D Vector.java
Flip Game II.java
Flip Game II.java
Flip Game.java
Flip Game.java
Fraction to Recurring Decimal.java
Fraction to Recurring Decimal.java
Game of Life.java
Game of Life.java
Gas Station.java
Gas Station.java
Generate Parentheses.java
Generate Parentheses.java
Graph Valid Tree.java
Graph Valid Tree.java
Gray Code.java
Gray Code.java
Group Anagrams.java
Group Anagrams.java
View all files
You can’t perform that action at this time.