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
Events
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 }}
BWbwchen
Coding_Practice
Repository navigation
Code
Issues
1
(1)
Pull requests
5
(5)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Coding_Practice
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Coding_Practice
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
.clang-format
.clang-format
0001_Two-Sum.cpp
0001_Two-Sum.cpp
0001_Two-Sum.rs
0001_Two-Sum.rs
0018_4sum.cpp
0018_4sum.cpp
0021_Merge-Two-Sorted-Lists.c
0021_Merge-Two-Sorted-Lists.c
0023_Merge-k-Sorted-Lists.cpp
0023_Merge-k-Sorted-Lists.cpp
0024_Swap-Nodes-in-Pairs.cpp
0024_Swap-Nodes-in-Pairs.cpp
0027_remove-element.cpp
0027_remove-element.cpp
0042_Trapping-Rain-Water.cpp
0042_Trapping-Rain-Water.cpp
0042_Trapping-Rain-Water.rs
0042_Trapping-Rain-Water.rs
0049_Group-Anagrams.cpp
0049_Group-Anagrams.cpp
0058_length-of-last-word.cpp
0058_length-of-last-word.cpp
0074_Search-a-2D-Matrix.cpp
0074_Search-a-2D-Matrix.cpp
0075_Sort-Colors.cpp
0075_Sort-Colors.cpp
0085_Maximal-Rectangle.cpp
0085_Maximal-Rectangle.cpp
0085_Maximal-Rectangle.rs
0085_Maximal-Rectangle.rs
0121_Best-Time-to-Buy-and-Sell-Stock.cpp
0121_Best-Time-to-Buy-and-Sell-Stock.cpp
0127_word_ladder.cpp
0127_word_ladder.cpp
0129_Sum-Root-to-Leaf-Numbers.rs
0129_Sum-Root-to-Leaf-Numbers.rs
0130_surrounded-regions.cpp
0130_surrounded-regions.cpp
0131_palindrome-partitioning.cpp
0131_palindrome-partitioning.cpp
0134_gas-station.cpp
0134_gas-station.cpp
0135_Candy.cpp
0135_Candy.cpp
0150_Evaluate-Reverse-Polish-Notation.cpp
0150_Evaluate-Reverse-Polish-Notation.cpp
0151_Reverse-Words-in-a-String.cpp
0151_Reverse-Words-in-a-String.cpp
0160_Intersection-of-Two-Linked-Lists.cpp
0160_Intersection-of-Two-Linked-Lists.cpp
0162_Find-Peak-Element.cpp
0162_Find-Peak-Element.cpp
0166_Fraction-to-Recurring-Decimal.cpp
0166_Fraction-to-Recurring-Decimal.cpp
0171_Excel-Sheet-Column-Number.cpp
0171_Excel-Sheet-Column-Number.cpp
0172_Factorial-Trailing-Zeroes.cpp
0172_Factorial-Trailing-Zeroes.cpp
0179_Largest-Number.cpp
0179_Largest-Number.cpp
0190_Reverse-Bits.cpp
0190_Reverse-Bits.cpp
0191_Number-of-1-Bits.cpp
0191_Number-of-1-Bits.cpp
0202_Happy-Number.cpp
0202_Happy-Number.cpp
0204_Count-Primes.cpp
0204_Count-Primes.cpp
0206_Reverse-Linked-List.cpp
0206_Reverse-Linked-List.cpp
0217_Contains-Duplicate.cpp
0217_Contains-Duplicate.cpp
0228_Summary-Ranges.cpp
0228_Summary-Ranges.cpp
0231_Power-of-Two.cpp
0231_Power-of-Two.cpp
0242_Valid-Anagram.cpp
0242_Valid-Anagram.cpp
0268_Missing-Number.cpp
0268_Missing-Number.cpp
0283_Move-Zeroes.cpp
0283_Move-Zeroes.cpp
0290_Word-Pattern.cpp
0290_Word-Pattern.cpp
0304_Range-Sum-Query-2D-Immutable.cpp
0304_Range-Sum-Query-2D-Immutable.cpp
0310_Minimum-Height-Trees.cpp
0310_Minimum-Height-Trees.cpp
0326_Power-of-Three.cpp
0326_Power-of-Three.cpp
0402_Remove-K-Digits.rs
0402_Remove-K-Digits.rs
0404_Sum-of-Left-Leaves.rs
0404_Sum-of-Left-Leaves.rs
0433_minimum-genetic-mutation.cpp
0433_minimum-genetic-mutation.cpp
0443_String-Compression.cpp
0443_String-Compression.cpp
0455_Assign-Cookies.cpp
0455_Assign-Cookies.cpp
0463_Island-Perimeter.cpp
0463_Island-Perimeter.cpp
0530_minimum-absolute-difference-in-bst.cpp
0530_minimum-absolute-difference-in-bst.cpp
0540_Single-Element-in-a-Sorted-Array.cpp
0540_Single-Element-in-a-Sorted-Array.cpp
0547_Number-of-Provinces.cpp
0547_Number-of-Provinces.cpp
0560_Subarray-Sum-Equals-K.cpp
0560_Subarray-Sum-Equals-K.cpp
0621_Task-Scheduler.cpp
0621_Task-Scheduler.cpp
0622_Design-Circular-Queue.cpp
0622_Design-Circular-Queue.cpp
0623_Add-One-Row-to-Tree.cpp
0623_Add-One-Row-to-Tree.cpp
0692_Top-K-Frequent-Words.cpp
0692_Top-K-Frequent-Words.cpp
0696_Count-Binary-Substrings.cpp
0696_Count-Binary-Substrings.cpp
0697_Degree-of-an-Array.cpp
0697_Degree-of-an-Array.cpp
0701_Insert-into-a-Binary-Search-Tree.cpp
0701_Insert-into-a-Binary-Search-Tree.cpp
0705_Design-HashSet.cpp
0705_Design-HashSet.cpp
0744_Find-Smallest-Letter-Greater-Than-Target.cpp
0744_Find-Smallest-Letter-Greater-Than-Target.cpp
0752_Open-the-Lock.cpp
0752_Open-the-Lock.cpp
0783_minimum-distance-between-bst-nodes.cpp
0783_minimum-distance-between-bst-nodes.cpp
0950_Reveal-Cards-In-Increasing-Order.rs
0950_Reveal-Cards-In-Increasing-Order.rs
0988_Smallest-String-Starting-From-Leaf.cpp
0988_Smallest-String-Starting-From-Leaf.cpp
1.Two_Sum.md
1.Two_Sum.md
1008.cpp
1008.cpp
101.cpp
101.cpp
102.cpp
102.cpp
103.cpp
103.cpp
104.cpp
104.cpp
1046_Last-Stone-Weight.cpp
1046_Last-Stone-Weight.cpp
105.cpp
105.cpp
108.cpp
108.cpp
11.Container_With_Most_Water.md
11.Container_With_Most_Water.md
11.js
11.js
1137_N-th-Tribonacci-Number.cpp
1137_N-th-Tribonacci-Number.cpp
114.cpp
114.cpp
1143.cpp
1143.cpp
1146_Snapshot-Array.cpp
1146_Snapshot-Array.cpp
116.cpp
116.cpp
1161_maximum-level-sum-of-a-binary-tree.cpp
1161_maximum-level-sum-of-a-binary-tree.cpp
118.cpp
118.cpp
118.rs
118.rs
122.cpp
122.cpp
122.rs
122.rs
124.cpp
124.cpp
124.go
124.go
125.cpp
125.cpp
128.cpp
128.cpp
128.go
128.go
13.cpp
13.cpp
1318_Minimum-Flips-to-Make-a-OR-b-Equal-to-c.cpp
1318_Minimum-Flips-to-Make-a-OR-b-Equal-to-c.cpp
1351_Count-Negative-Numbers-in-a-Sorted-Matrix.cpp
1351_Count-Negative-Numbers-in-a-Sorted-Matrix.cpp
138.cpp
138.cpp
139.cpp
139.cpp
View all files
You can’t perform that action at this time.