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 }}
ShaolingPu
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
1
(
1
)
You must be signed in to star a repository
About
Record of some fast solutions in leetcode.
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
32 Commits
32 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1009. Complement of Base 10 Integer.cpp
1009. Complement of Base 10 Integer.cpp
1010. Pairs of Songs With Total Durations Divisible by 60.cpp
1010. Pairs of Songs With Total Durations Divisible by 60.cpp
1011. Capacity To Ship Packages Within D Days.cpp
1011. Capacity To Ship Packages Within D Days.cpp
1017. Convert to Base -2.cpp
1017. Convert to Base -2.cpp
1019. Next Greater Node In Linked List.cpp
1019. Next Greater Node In Linked List.cpp
1020. Number of Enclaves.cpp
1020. Number of Enclaves.cpp
1021. Remove Outermost Parentheses.cpp
1021. Remove Outermost Parentheses.cpp
1022. Sum of Root To Leaf Binary Numbers.cpp
1022. Sum of Root To Leaf Binary Numbers.cpp
1023. Camelcase Matching.cpp
1023. Camelcase Matching.cpp
1025. Divisor Game.cpp
1025. Divisor Game.cpp
1026. Maximum Difference Between Node and Ancestor.cpp
1026. Maximum Difference Between Node and Ancestor.cpp
1030. Matrix Cells in Distance Order.go
1030. Matrix Cells in Distance Order.go
1033. Moving Stones Until Consecutive.cpp
1033. Moving Stones Until Consecutive.cpp
1037. Valid Boomerang.cpp
1037. Valid Boomerang.cpp
1038. Binary Search Tree to Greater Sum Tree.cpp
1038. Binary Search Tree to Greater Sum Tree.cpp
1042. Flower Planting With No Adjacent.go
1042. Flower Planting With No Adjacent.go
1046. Last Stone Weight.cpp
1046. Last Stone Weight.cpp
1051. Height Checker.cpp
1051. Height Checker.cpp
1071. Greatest Common Divisor of Strings.go
1071. Greatest Common Divisor of Strings.go
1078. Occurrences After Bigram.go
1078. Occurrences After Bigram.go
1089. Duplicate Zeros.cpp
1089. Duplicate Zeros.cpp
1128. Number of Equivalent Domino Pairs.go
1128. Number of Equivalent Domino Pairs.go
1137. N-th Tribonacci Number.go
1137. N-th Tribonacci Number.go
1175. Prime Arrangements.go
1175. Prime Arrangements.go
1184. Distance Between Bus Stops.go
1184. Distance Between Bus Stops.go
1185. Day of the Week.go
1185. Day of the Week.go
1217. Play with Chips.go
1217. Play with Chips.go
1232. Check If It Is a Straight Line.cpp
1232. Check If It Is a Straight Line.cpp
1295. Find Numbers with Even Number of Digits.cpp
1295. Find Numbers with Even Number of Digits.cpp
1299. Replace Elements with Greatest Element on Right Side.cpp
1299. Replace Elements with Greatest Element on Right Side.cpp
1323. Maximum 69 Number.go
1323. Maximum 69 Number.go
1346. Check If N and Its Double Exist.cpp
1346. Check If N and Its Double Exist.cpp
1389. Create Target Array in the Given Order.go
1389. Create Target Array in the Given Order.go
1399. Count Largest Group.go
1399. Count Largest Group.go
1403. Minimum Subsequence in Non-Increasing Order.cpp
1403. Minimum Subsequence in Non-Increasing Order.cpp
1408. String Matching in an Array.cpp
1408. String Matching in an Array.cpp
1413. Minimum Value to Get Positive Step by Step Sum.cpp
1413. Minimum Value to Get Positive Step by Step Sum.cpp
1417. Reformat The String.cpp
1417. Reformat The String.cpp
1422. Maximum Score After Splitting a String.go
1422. Maximum Score After Splitting a String.go
1431. Kids With the Greatest Number of Candies.go
1431. Kids With the Greatest Number of Candies.go
1436. Destination City.go
1436. Destination City.go
1437. Check If All 1's Are at Least Length K Places Away.cpp
1437. Check If All 1's Are at Least Length K Places Away.cpp
1441. Build an Array With Stack Operations.go
1441. Build an Array With Stack Operations.go
1446. Consecutive Characters.go
1446. Consecutive Characters.go
1450. Number of Students Doing Homework at a Given Time.go
1450. Number of Students Doing Homework at a Given Time.go
147. Insertion Sort List.cpp
147. Insertion Sort List.cpp
1471. The k Strongest Values in an Array.cpp
1471. The k Strongest Values in an Array.cpp
1609. Even Odd Tree.cpp
1609. Even Odd Tree.cpp
169. Majority Element.cpp
169. Majority Element.cpp
208. Implement Trie (Prefix Tree).cpp
208. Implement Trie (Prefix Tree).cpp
230. Kth Smallest Element in a BST.cpp
230. Kth Smallest Element in a BST.cpp
2588. 统计美丽子数组数目.py
2588. 统计美丽子数组数目.py
26. Remove Duplicates from Sorted Array.cpp
26. Remove Duplicates from Sorted Array.cpp
27. Remove Element.cpp
27. Remove Element.cpp
278. First Bad Version.cpp
278. First Bad Version.cpp
283. Move Zeroes.cpp
283. Move Zeroes.cpp
328. Odd Even Linked List.cpp
328. Odd Even Linked List.cpp
367. Valid Perfect Square.cpp
367. Valid Perfect Square.cpp
383. Ransom Note.cpp
383. Ransom Note.cpp
387. First Unique Character in a String.cpp
387. First Unique Character in a String.cpp
402. Remove K Digits.cpp
402. Remove K Digits.cpp
438. Find All Anagrams in a String.cpp
438. Find All Anagrams in a String.cpp
461. Hamming Distance.cpp
461. Hamming Distance.cpp
476. Number Complement.cpp
476. Number Complement.cpp
477. Total Hamming Distance.cpp
477. Total Hamming Distance.cpp
485. Max Consecutive Ones.cpp
485. Max Consecutive Ones.cpp
540. Single Element in a Sorted Array.cpp
540. Single Element in a Sorted Array.cpp
567. Permutation in String.cpp
567. Permutation in String.cpp
733. Flood Fill.cpp
733. Flood Fill.cpp
744. Find Smallest Letter Greater Than Target.cpp
744. Find Smallest Letter Greater Than Target.cpp
746. Min Cost Climbing Stairs.cpp
746. Min Cost Climbing Stairs.cpp
747. Largest Number At Least Twice of Others.cpp
747. Largest Number At Least Twice of Others.cpp
748. Shortest Completing Word.cpp
748. Shortest Completing Word.cpp
771. Jewels and Stones.cpp
771. Jewels and Stones.cpp
806. Number of Lines To Write String.cpp
806. Number of Lines To Write String.cpp
811. Subdomain Visit Count.cpp
811. Subdomain Visit Count.cpp
88. Merge Sorted Array.cpp
88. Merge Sorted Array.cpp
901. Online Stock Span.cpp
901. Online Stock Span.cpp
905. Sort Array By Parity.cpp
905. Sort Array By Parity.cpp
918. Maximum Sum Circular Subarray.cpp
918. Maximum Sum Circular Subarray.cpp
941. Valid Mountain Array.cpp
941. Valid Mountain Array.cpp
942. DI String Match.go
942. DI String Match.go
944. Delete Columns to Make Sorted.go
944. Delete Columns to Make Sorted.go
949. Largest Time for Given Digits.go
949. Largest Time for Given Digits.go
953. Verifying an Alien Dictionary.go
953. Verifying an Alien Dictionary.go
961. N-Repeated Element in Size 2N Array.go
961. N-Repeated Element in Size 2N Array.go
965. Univalued Binary Tree.cpp
965. Univalued Binary Tree.cpp
970. Powerful Integers.go
970. Powerful Integers.go
976. Largest Perimeter Triangle.go
976. Largest Perimeter Triangle.go
977. Squares of a Sorted Array.cpp
977. Squares of a Sorted Array.cpp
985. Sum of Even Numbers After Queries.go
985. Sum of Even Numbers After Queries.go
989. Add to Array-Form of Integer.go
989. Add to Array-Form of Integer.go
993. Cousins in Binary Tree.cpp
993. Cousins in Binary Tree.cpp
997. Find the Town Judge.cpp
997. Find the Town Judge.cpp
999. Available Captures for Rook.go
999. Available Captures for Rook.go
README.md
README.md
View all files
Repository files navigation
README
More
items
leetcode
Record of some solutions in leetcode.
About
Record of some fast solutions in leetcode.
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.