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 }}
lt77777
Leetcode_Solutions
Repository navigation
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Leetcode_Solutions
Public
Sponsor
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
Leetcode Solutions for all
Topics
bash
cpp
javascript
leetcode
python
Resources
Readme
Code of conduct
Code of conduct
Contributing
Contributing
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
158 Commits
158 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.github
.github
1-Two Sum.py
1-Two Sum.py
10-Regular Expression Matching.py
10-Regular Expression Matching.py
100-Same Tree.py
100-Same Tree.py
102-Binary Tree Level Order Traversal.py
102-Binary Tree Level Order Traversal.py
103-Binary Tree Zigzag Level Order Traversal.py
103-Binary Tree Zigzag Level Order Traversal.py
1048-Longest String Chain.py
1048-Longest String Chain.py
105-Construct Binary Tree from Preorder and Inorder Traversal.py
105-Construct Binary Tree from Preorder and Inorder Traversal.py
1071-Greatest Common Divisor of Strings.py
1071-Greatest Common Divisor of Strings.py
11-Container with Most Water.py
11-Container with Most Water.py
110-Balanced Binary Tree.py
110-Balanced Binary Tree.py
111-Minimum Depth of Binary Tree.py
111-Minimum Depth of Binary Tree.py
1114-Print in Order.py
1114-Print in Order.py
112-Path Sum I.py
112-Path Sum I.py
113-Path Sum II.py
113-Path Sum II.py
114-Flatten Binary Tree to Linked List.py
114-Flatten Binary Tree to Linked List.py
1177-Can Make Palindrome from Substring.py
1177-Can Make Palindrome from Substring.py
118-Pascal's Triangle.py
118-Pascal's Triangle.py
119-Pascal's Triangle II.py
119-Pascal's Triangle II.py
120-Triangle.py
120-Triangle.py
121-Best Time to Buy and Sell Stock.py
121-Best Time to Buy and Sell Stock.py
122-Best Time to Buy and Sell Stock II.py
122-Best Time to Buy and Sell Stock II.py
123-Best Time to Buy and Sell Stock III.py
123-Best Time to Buy and Sell Stock III.py
129-Sum Root to Leaf Numbers.py
129-Sum Root to Leaf Numbers.py
13-Roman to Integer.py
13-Roman to Integer.py
1319-Number of Operations to Make Network Connected.py
1319-Number of Operations to Make Network Connected.py
1328-Break a Palindrome.py
1328-Break a Palindrome.py
1338-Reduce Array Size to The Half.PY
1338-Reduce Array Size to The Half.PY
1370-Increasing Decreasing String.py
1370-Increasing Decreasing String.py
138-Copy List with Random Pointer.py
138-Copy List with Random Pointer.py
1390-Four Divisors.py
1390-Four Divisors.py
14-Longest Common Prefix.py
14-Longest Common Prefix.py
141-Linked List Cycle.py
141-Linked List Cycle.py
146-LRU Cache.py
146-LRU Cache.py
15-3Sum.cpp
15-3Sum.cpp
151-Reverse Words in a String.py
151-Reverse Words in a String.py
1515-Best Position for a Service Centre.py
1515-Best Position for a Service Centre.py
16-3Sum Closest.py
16-3Sum Closest.py
160-Intersection of Two Linked Lists.py
160-Intersection of Two Linked Lists.py
169-Majority Element.py
169-Majority Element.py
17-Letter Combinations of a Phone Number.py
17-Letter Combinations of a Phone Number.py
175-Combine Two Tables.txt
175-Combine Two Tables.txt
19-Remove Nth Node From End of List.py
19-Remove Nth Node From End of List.py
192-Word Frequency.sh
192-Word Frequency.sh
193-Valid Phone Numbers.sh
193-Valid Phone Numbers.sh
194-Transpose File.sh
194-Transpose File.sh
195-Tenth Line.sh
195-Tenth Line.sh
198-House Robber.py
198-House Robber.py
2-Add Two Numbers.py
2-Add Two Numbers.py
20-Valid Parentheses.py
20-Valid Parentheses.py
200-Number of Islands.py
200-Number of Islands.py
202-Happy Number.py
202-Happy Number.py
203-Remove Linked List Elements.py
203-Remove Linked List Elements.py
204-Count Primes.py
204-Count Primes.py
21-Merge Two Sorted Lists.py
21-Merge Two Sorted Lists.py
212-Word Search II.py
212-Word Search II.py
213-House Robber II.py
213-House Robber II.py
215-Kth Largest Element in an Array.py
215-Kth Largest Element in an Array.py
221-Maximal Square.py
221-Maximal Square.py
225-Implement Stack using Queues.py
225-Implement Stack using Queues.py
226-Invert Binary Tree.py
226-Invert Binary Tree.py
228-Summary Ranges.py
228-Summary Ranges.py
229-Majority Element II.py
229-Majority Element II.py
23-Merge k Sorted Lists.py
23-Merge k Sorted Lists.py
230-Kth Smallest Element in a BST.py
230-Kth Smallest Element in a BST.py
232-Implement Queue using Stacks.py
232-Implement Queue using Stacks.py
239-Sliding Window Maximum.py
239-Sliding Window Maximum.py
240-Search a 2D Matrix II.py
240-Search a 2D Matrix II.py
241-Different Ways to Add Parentheses.py
241-Different Ways to Add Parentheses.py
257-Binary Tree Paths.py
257-Binary Tree Paths.py
26-Remove Duplicates from Sorted Array.py
26-Remove Duplicates from Sorted Array.py
27-Remove Element.py
27-Remove Element.py
273-Integer to English Words.py
273-Integer to English Words.py
278-First Bad Version.py
278-First Bad Version.py
279-Perfect Squares.py
279-Perfect Squares.py
28-Implement strStr().py
28-Implement strStr().py
283-Move Zeroes.py
283-Move Zeroes.py
290-Word Pattern.py
290-Word Pattern.py
295-Find Median from Data Stream.py
295-Find Median from Data Stream.py
297-Serialize and Deserialize Binary Tree.py
297-Serialize and Deserialize Binary Tree.py
3-Longest Substring Without Repeating Characters.py
3-Longest Substring Without Repeating Characters.py
31-Next Permutation.py
31-Next Permutation.py
32-Longest Valid Parentheses.py
32-Longest Valid Parentheses.py
322-Coin Change.py
322-Coin Change.py
324-Wiggle Sort II.py
324-Wiggle Sort II.py
328-Odd Even Linked List.py
328-Odd Even Linked List.py
33-Search in Rotated Sorted Array.py
33-Search in Rotated Sorted Array.py
332-Reconstruct Itinerary.py
332-Reconstruct Itinerary.py
338-Counting Bits.py
338-Counting Bits.py
349-Intersection of Two Arrays.py
349-Intersection of Two Arrays.py
387-First Unique Character in a String.py
387-First Unique Character in a String.py
39-Combination Sum.py
39-Combination Sum.py
4-Median of Two Sorted Arrays.py
4-Median of Two Sorted Arrays.py
404-Sum of Left Leaves.py
404-Sum of Left Leaves.py
412-Fizz Buzz.py
412-Fizz Buzz.py
42-Trapping Rain Water.js
42-Trapping Rain Water.js
43-Multiply Strings.py
43-Multiply Strings.py
443-String Compression.py
443-String Compression.py
45-Jump Game II.py
45-Jump Game II.py
463-Island Perimeter.py
463-Island Perimeter.py
View all files
Repository files navigation
README
Code of conduct
Contributing
More
items
Leetcode Solutions
Feel free to contribute!
About
Leetcode Solutions for all
Topics
bash
cpp
javascript
leetcode
python
Resources
Readme
Code of conduct
Code of conduct
Contributing
Contributing
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Sponsor this project
Packages
Contributors
Languages
You can’t perform that action at this time.