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 }}
CPythoner
leetcode-1
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
leetcode-1
/
solution
/
2000-2099
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
leetcode-1
/
solution
/
2000-2099
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
2000.Reverse Prefix of Word
2000.Reverse Prefix of Word
2001.Number of Pairs of Interchangeable Rectangles
2001.Number of Pairs of Interchangeable Rectangles
2002.Maximum Product of the Length of Two Palindromic Subsequences
2002.Maximum Product of the Length of Two Palindromic Subsequences
2003.Smallest Missing Genetic Value in Each Subtree
2003.Smallest Missing Genetic Value in Each Subtree
2004.The Number of Seniors and Juniors to Join the Company
2004.The Number of Seniors and Juniors to Join the Company
2005.Subtree Removal Game with Fibonacci Tree
2005.Subtree Removal Game with Fibonacci Tree
2006.Count Number of Pairs With Absolute Difference K
2006.Count Number of Pairs With Absolute Difference K
2007.Find Original Array From Doubled Array
2007.Find Original Array From Doubled Array
2008.Maximum Earnings From Taxi
2008.Maximum Earnings From Taxi
2009.Minimum Number of Operations to Make Array Continuous
2009.Minimum Number of Operations to Make Array Continuous
2010.The Number of Seniors and Juniors to Join the Company II
2010.The Number of Seniors and Juniors to Join the Company II
2011.Final Value of Variable After Performing Operations
2011.Final Value of Variable After Performing Operations
2012.Sum of Beauty in the Array
2012.Sum of Beauty in the Array
2013.Detect Squares
2013.Detect Squares
2014.Longest Subsequence Repeated k Times
2014.Longest Subsequence Repeated k Times
2015.Average Height of Buildings in Each Segment
2015.Average Height of Buildings in Each Segment
2016.Maximum Difference Between Increasing Elements
2016.Maximum Difference Between Increasing Elements
2017.Grid Game
2017.Grid Game
2018.Check if Word Can Be Placed In Crossword
2018.Check if Word Can Be Placed In Crossword
2019.The Score of Students Solving Math Expression
2019.The Score of Students Solving Math Expression
View all files
You can’t perform that action at this time.