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
Small and medium teams
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 }}
hedongprogramming
leetcode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
leetcode
/
Java
/
src
/
com
/
longluo
/
leetcode
/
string
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode
/
Java
/
src
/
com
/
longluo
/
leetcode
/
string
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Problem1044_longestDupSubstring.java
Problem1044_longestDupSubstring.java
Problem1078_occurrencesAfterBigram.java
Problem1078_occurrencesAfterBigram.java
Problem1108_defangingAnIPAddr.java
Problem1108_defangingAnIPAddr.java
Problem1249_minRemoveToMakeValid.java
Problem1249_minRemoveToMakeValid.java
Problem1374_generateTheString.java
Problem1374_generateTheString.java
Problem1417_reformatTheString.java
Problem1417_reformatTheString.java
Problem1455_isPrefixOfWord.java
Problem1455_isPrefixOfWord.java
Problem1576_modifyString.java
Problem1576_modifyString.java
Problem1592_rearrangeSpacesBetweenWords.java
Problem1592_rearrangeSpacesBetweenWords.java
Problem1614_maximumNestingDepthOfTheParentheses.java
Problem1614_maximumNestingDepthOfTheParentheses.java
Problem1662_arrayStringsAreEqual.java
Problem1662_arrayStringsAreEqual.java
Problem1668_maxRepeating.java
Problem1668_maxRepeating.java
Problem1684_countConsistentStrings.java
Problem1684_countConsistentStrings.java
Problem1694_reformatPhoneNumber.java
Problem1694_reformatPhoneNumber.java
Problem1704_halvesAreAlike.java
Problem1704_halvesAreAlike.java
Problem1736_latestTimeByReplacingHiddenDigits.java
Problem1736_latestTimeByReplacingHiddenDigits.java
Problem1758_minOperations.java
Problem1758_minOperations.java
Problem1769_minOperations.java
Problem1769_minOperations.java
Problem1773_countItemsMatchingARule.java
Problem1773_countItemsMatchingARule.java
Problem1784_checkOnesSegment.java
Problem1784_checkOnesSegment.java
Problem1945_sumOfDigitsOfStringAfterConvert.java
Problem1945_sumOfDigitsOfStringAfterConvert.java
Problem2011_FinalValueofVariableAfterPerformingOperations.java
Problem2011_FinalValueofVariableAfterPerformingOperations.java
Problem2042_areNumbersAscending.java
Problem2042_areNumbersAscending.java
Problem2047_countValidWords.java
Problem2047_countValidWords.java
Problem2315_countAsterisks.java
Problem2315_countAsterisks.java
Problem316_removeDuplicateLetters.java
Problem316_removeDuplicateLetters.java
Problem415_addStrings.java
Problem415_addStrings.java
Problem423_originalDigits.java
Problem423_originalDigits.java
Problem434_countSegments.java
Problem434_countSegments.java
Problem482_licenseKeyFormatting.java
Problem482_licenseKeyFormatting.java
Problem520_detectCapital.java
Problem520_detectCapital.java
Problem521_longestUncommonSubsequence_i.java
Problem521_longestUncommonSubsequence_i.java
Problem551_studentAttendanceRecord_i.java
Problem551_studentAttendanceRecord_i.java
Problem592_fractionAdditionAndSubtraction.java
Problem592_fractionAdditionAndSubtraction.java
Problem647_countSubstrings.java
Problem647_countSubstrings.java
Problem65_validNumber.java
Problem65_validNumber.java
Problem686_repeatedStringMatch.java
Problem686_repeatedStringMatch.java
Problem6_zigzagConversion.java
Problem6_zigzagConversion.java
Problem796_rotateString.java
Problem796_rotateString.java
Problem811_subdomainVisitCount.java
Problem811_subdomainVisitCount.java
Problem824_goatLatin.java
Problem824_goatLatin.java
Problem831_maskingPersonalInformation.java
Problem831_maskingPersonalInformation.java
Problem856_scoreOfParentheses.java
Problem856_scoreOfParentheses.java
Problem859_buddyStrings.java
Problem859_buddyStrings.java
Problem944_deleteColumnsToMakeSorted.java
Problem944_deleteColumnsToMakeSorted.java
View all files
You can’t perform that action at this time.