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
/
math
/
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
/
math
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Problem1006_clumsy.java
Problem1006_clumsy.java
Problem1104_pathInZigzagLabelledBinaryTree.java
Problem1104_pathInZigzagLabelledBinaryTree.java
Problem1154_dayOfYear.java
Problem1154_dayOfYear.java
Problem1175_primeArrangements.java
Problem1175_primeArrangements.java
Problem1185_dayOfTheWeek.java
Problem1185_dayOfTheWeek.java
Problem1250_checkIfItIsAGoodArray.java
Problem1250_checkIfItIsAGoodArray.java
Problem1252_cellsWithOddValuesInAMatrix.java
Problem1252_cellsWithOddValuesInAMatrix.java
Problem1281_subtractProductAndSum.java
Problem1281_subtractProductAndSum.java
Problem12_integerToRoman.java
Problem12_integerToRoman.java
Problem1323_maximum69Number.java
Problem1323_maximum69Number.java
Problem1447_simplifiedFractions.java
Problem1447_simplifiedFractions.java
Problem1518_numWaterBottles.java
Problem1518_numWaterBottles.java
Problem1688_numberOfMatches.java
Problem1688_numberOfMatches.java
Problem168_excelSheetColumnTitle.java
Problem168_excelSheetColumnTitle.java
Problem1716_calculateMoneyInLeetcodeBank.java
Problem1716_calculateMoneyInLeetcodeBank.java
Problem1759_countNumberOfHomogenousSubstrings.java
Problem1759_countNumberOfHomogenousSubstrings.java
Problem1780_checkPowersOfThree.java
Problem1780_checkPowersOfThree.java
Problem1812_squareIsWhite.java
Problem1812_squareIsWhite.java
Problem223_computeArea.java
Problem223_computeArea.java
Problem258_addDigits.java
Problem258_addDigits.java
Problem263_uglyNumber.java
Problem263_uglyNumber.java
Problem264_uglyNumber_ii.java
Problem264_uglyNumber_ii.java
Problem292_nimGame.java
Problem292_nimGame.java
Problem319_bulbSwitcher.java
Problem319_bulbSwitcher.java
Problem357_countNumbersWithUniqueDigits.java
Problem357_countNumbersWithUniqueDigits.java
Problem367_validPerfectSquare.java
Problem367_validPerfectSquare.java
Problem372_superPow.java
Problem372_superPow.java
Problem390_eliminationGame.java
Problem390_eliminationGame.java
Problem400_nthDigit.java
Problem400_nthDigit.java
Problem405_toHex.java
Problem405_toHex.java
Problem414_thirdMax.java
Problem414_thirdMax.java
Problem458_poorPigs.java
Problem458_poorPigs.java
Problem479_largestPalindromeProduct.java
Problem479_largestPalindromeProduct.java
Problem492_constructRectangle.java
Problem492_constructRectangle.java
Problem504_convertToBase7.java
Problem504_convertToBase7.java
Problem507_perfectNumber.java
Problem507_perfectNumber.java
Problem519_randomFlipMatrix.java
Problem519_randomFlipMatrix.java
Problem523_continuousSubarraySum.java
Problem523_continuousSubarraySum.java
Problem537_complexNumberMultiplication.java
Problem537_complexNumberMultiplication.java
Problem556_nextGreaterElement.java
Problem556_nextGreaterElement.java
Problem564_findTheClosestPalindrome.java
Problem564_findTheClosestPalindrome.java
Problem633_sumOfSquareNumbers.java
Problem633_sumOfSquareNumbers.java
Problem640_solveTheEquation.java
Problem640_solveTheEquation.java
Problem650_2_Keys_Keyboard.java
Problem650_2_Keys_Keyboard.java
Problem667_beautifulArrangement_ii.java
Problem667_beautifulArrangement_ii.java
Problem728_selfDividingNumbers.java
Problem728_selfDividingNumbers.java
Problem780_reachingPoints.java
Problem780_reachingPoints.java
Problem829_consecutiveNumbersSum.java
Problem829_consecutiveNumbersSum.java
Problem869_reorderedPowerOf2.java
Problem869_reorderedPowerOf2.java
Problem878_nthMagicalNumber.java
Problem878_nthMagicalNumber.java
Problem927_threeEqualParts.java
Problem927_threeEqualParts.java
Problem9_palindromeNumber.java
Problem9_palindromeNumber.java
View all files
You can’t perform that action at this time.