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 }}
Fect
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
210 Commits
210 Commits
Folders and files
Name
Name
Last commit message
Last commit date
src/
main/
java
src/
main/
java
.gitignore
.gitignore
1024. Video Stitching.cpp
1024. Video Stitching.cpp
1139. Largest 1-Bordered Square.cpp
1139. Largest 1-Bordered Square.cpp
1504. Count Submatrices With All Ones.cpp
1504. Count Submatrices With All Ones.cpp
70. Climbing Stairs.cpp
70. Climbing Stairs.cpp
LeetcodeCode.iml
LeetcodeCode.iml
MergeSort.cpp
MergeSort.cpp
README.md
README.md
Untitled-1.txt
Untitled-1.txt
code2.cpp
code2.cpp
countCode.cpp
countCode.cpp
countCode.txt
countCode.txt
leetcode.iml
leetcode.iml
pom.xml
pom.xml
quickSort.cpp
quickSort.cpp
t1003 Check If Word Is Valid After Substitutions.cpp
t1003 Check If Word Is Valid After Substitutions.cpp
t1004. Max Consecutive Ones III.cpp
t1004. Max Consecutive Ones III.cpp
t1025. Divisor Game.cpp
t1025. Divisor Game.cpp
t1027. Longest Arithmetic Sequence.cpp
t1027. Longest Arithmetic Sequence.cpp
t1039. Minimum Score Triangulation of Polygon.cpp
t1039. Minimum Score Triangulation of Polygon.cpp
t1048. Longest String Chain.cpp
t1048. Longest String Chain.cpp
t1049. Last Stone Weight II.cpp
t1049. Last Stone Weight II.cpp
t1072. Flip Columns For Maximum Number of Equal Rows.cpp
t1072. Flip Columns For Maximum Number of Equal Rows.cpp
t1081. Smallest Subsequence of Distinct Characters.cpp
t1081. Smallest Subsequence of Distinct Characters.cpp
t1090. Largest Values From Labels.cpp
t1090. Largest Values From Labels.cpp
t1093. Statistics from a Large Sample.cpp
t1093. Statistics from a Large Sample.cpp
t1105. Filling Bookcase Shelves.cpp
t1105. Filling Bookcase Shelves.cpp
t1108. Defanging an IP Address.cpp
t1108. Defanging an IP Address.cpp
t1130. Minimum Cost Tree From Leaf Values.cpp
t1130. Minimum Cost Tree From Leaf Values.cpp
t1138. Alphabet Board Path.cpp
t1138. Alphabet Board Path.cpp
t1139. Largest 1-Bordered Square.cpp
t1139. Largest 1-Bordered Square.cpp
t1140. Stone Game II.cpp
t1140. Stone Game II.cpp
t1143. Longest Common Subsequence.cpp
t1143. Longest Common Subsequence.cpp
t1155. Number of Dice Rolls With Target Sum.cpp
t1155. Number of Dice Rolls With Target Sum.cpp
t1156. Swap For Longest Repeated Character Substring.cpp
t1156. Swap For Longest Repeated Character Substring.cpp
t1160. Find Words That Can Be Formed by Characters.cpp
t1160. Find Words That Can Be Formed by Characters.cpp
t1177. Can Make Palindrome from Substring.cpp
t1177. Can Make Palindrome from Substring.cpp
t1207. Unique Number of Occurrences.cpp
t1207. Unique Number of Occurrences.cpp
t121. Best Time to Buy and Sell Stock.cpp
t121. Best Time to Buy and Sell Stock.cpp
t1218. Longest Arithmetic Subsequence of Given Difference.cpp
t1218. Longest Arithmetic Subsequence of Given Difference.cpp
t1221. Split a String in Balanced Strings.cpp
t1221. Split a String in Balanced Strings.cpp
t1223. Dice Roll Simulation.cpp
t1223. Dice Roll Simulation.cpp
t1227. Airplane Seat Assignment Probability.cpp
t1227. Airplane Seat Assignment Probability.cpp
t1248. Count Number of Nice Subarrays.cpp
t1248. Count Number of Nice Subarrays.cpp
t1254. Number of Closed Islands.cpp
t1254. Number of Closed Islands.cpp
t1261. Find Elements in a Contaminated Binary Tree.cpp
t1261. Find Elements in a Contaminated Binary Tree.cpp
t1262. Greatest Sum Divisible by Three.cpp
t1262. Greatest Sum Divisible by Three.cpp
t1268.Search Suggestions.cpp
t1268.Search Suggestions.cpp
t1277. Count Square Submatrices with All Ones.cpp
t1277. Count Square Submatrices with All Ones.cpp
t1295. Find Numbers with Even Number of Digits.cpp
t1295. Find Numbers with Even Number of Digits.cpp
t1297. Maximum Number of Occurrences of a Substring.cpp
t1297. Maximum Number of Occurrences of a Substring.cpp
t1311. Get Watched Videos by Your Friends.cpp
t1311. Get Watched Videos by Your Friends.cpp
t1313. Decompress Run-Length Encoded List.cpp
t1313. Decompress Run-Length Encoded List.cpp
t1314. Matrix Block Sum.cpp
t1314. Matrix Block Sum.cpp
t1328. Break a Palindrome.cpp
t1328. Break a Palindrome.cpp
t1351. Count Negative Numbers in a Sorted Matrix.cpp
t1351. Count Negative Numbers in a Sorted Matrix.cpp
t1365. How Many Numbers Are Smaller Than the Current Number.cpp
t1365. How Many Numbers Are Smaller Than the Current Number.cpp
t1367. Linked List in Binary Tree.cpp
t1367. Linked List in Binary Tree.cpp
t1372. Longest ZigZag Path in a Binary Tree.cpp
t1372. Longest ZigZag Path in a Binary Tree.cpp
t1389. Create Target Array in the Given Order.cpp
t1389. Create Target Array in the Given Order.cpp
t1405. Longest Happy String.cpp
t1405. Longest Happy String.cpp
t1423. Maximum Points You Can Obtain from Cards.cpp
t1423. Maximum Points You Can Obtain from Cards.cpp
t1431. Kids With the Greatest Number of Candies.cpp
t1431. Kids With the Greatest Number of Candies.cpp
t1464. Maximum Product of Two Elements in an Array.cpp
t1464. Maximum Product of Two Elements in an Array.cpp
t1470. Shuffle the Array.cpp
t1470. Shuffle the Array.cpp
t1504. Count Submatrices With All Ones.cpp
t1504. Count Submatrices With All Ones.cpp
t187. Repeated DNA Sequences.cpp
t187. Repeated DNA Sequences.cpp
t198. House Robber.cpp
t198. House Robber.cpp
t202. Happy Number.cpp
t202. Happy Number.cpp
t204. Count Primes.cpp
t204. Count Primes.cpp
t205. Isomorphic Strings.cpp
t205. Isomorphic Strings.cpp
t227. Basic Calculator II.cpp
t227. Basic Calculator II.cpp
t242. Valid Anagram.cpp
t242. Valid Anagram.cpp
t264. Ugly Number II.cpp
t264. Ugly Number II.cpp
t279. Perfect Squares.cpp
t279. Perfect Squares.cpp
t299. Bulls and Cows.cpp
t299. Bulls and Cows.cpp
t303. Range Sum Query - Immutable.cpp
t303. Range Sum Query - Immutable.cpp
t309. Best Time to Buy and Sell Stock with Cooldown.cpp
t309. Best Time to Buy and Sell Stock with Cooldown.cpp
t309. Best Time to Buy and Sell Stock with Cooldown.exe
t309. Best Time to Buy and Sell Stock with Cooldown.exe
t338. Counting Bits.cpp
t338. Counting Bits.cpp
t343. Integer Break.cpp
t343. Integer Break.cpp
t357. Count Numbers with Unique Digits.cpp
t357. Count Numbers with Unique Digits.cpp
t357. Count Numbers with Unique Digits.exe
t357. Count Numbers with Unique Digits.exe
t375. Guess Number Higher or Lower II.cpp
t375. Guess Number Higher or Lower II.cpp
t376. Wiggle Subsequence.cpp
t376. Wiggle Subsequence.cpp
t389. Find the Difference.cpp
t389. Find the Difference.cpp
t392. Is Subsequence.cpp
t392. Is Subsequence.cpp
t409. Longest Palindrome.cpp
t409. Longest Palindrome.cpp
t413. Arithmetic Slices.cpp
t413. Arithmetic Slices.cpp
t424. Longest Repeating Character Replacement.cpp
t424. Longest Repeating Character Replacement.cpp
t447. Number of Boomerangs.cpp
t447. Number of Boomerangs.cpp
t451. Sort Characters By Frequency.cpp
t451. Sort Characters By Frequency.cpp
t454. 4Sum II.cpp
t454. 4Sum II.cpp
t463. Island Perimeter.cpp
t463. Island Perimeter.cpp
t486. Predict the Winner.cpp
t486. Predict the Winner.cpp
t508. Most Frequent Subtree Sum.cpp
t508. Most Frequent Subtree Sum.cpp
t516. Longest Palindromic Subsequence.cpp
t516. Longest Palindromic Subsequence.cpp
t522. Longest Uncommon Subsequence II.cpp
t522. Longest Uncommon Subsequence II.cpp
t524. Longest Word in Dictionary through Deleting.cpp
t524. Longest Word in Dictionary through Deleting.cpp
View all files
Repository files navigation
README
More
items
LeetcodeCode
个人leetcode题解 cpp和java都有 基于javamaven工程,vscode也能打开
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.