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 }}
sugia
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
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
650 Commits
650 Commits
Folders and files
Name
Name
Last commit message
Last commit date
01 Matrix.py
01 Matrix.py
1-bit and 2-bit Characters.py
1-bit and 2-bit Characters.py
3Sum Smaller.py
3Sum Smaller.py
3sum-closest.py
3sum-closest.py
3sum.py
3sum.py
4Sum II.py
4Sum II.py
4sum.py
4sum.py
Accounts Merge.py
Accounts Merge.py
Add Digits.py
Add Digits.py
Add Strings.py
Add Strings.py
Add Two Numbers II.py
Add Two Numbers II.py
Add Two Numbers.py
Add Two Numbers.py
Add and Search Word - Data structure design.py
Add and Search Word - Data structure design.py
Alien Dictionary.py
Alien Dictionary.py
All O`one Data Structure.py
All O`one Data Structure.py
All Paths From Source to Target.py
All Paths From Source to Target.py
Android Unlock Patterns.py
Android Unlock Patterns.py
Arithmetic Slices.py
Arithmetic Slices.py
Arranging Coins.py
Arranging Coins.py
ArrayPartitionI.py
ArrayPartitionI.py
Assign Cookies.py
Assign Cookies.py
Average of Levels in Binary Tree.py
Average of Levels in Binary Tree.py
Backspace String Compare.py
Backspace String Compare.py
Balanced Binary Tree.py
Balanced Binary Tree.py
Base 7.py
Base 7.py
Baseball Game.py
Baseball Game.py
Basic Calculator II.py
Basic Calculator II.py
Basic Calculator III.py
Basic Calculator III.py
Basic Calculator.py
Basic Calculator.py
Battleships in a Board.py
Battleships in a Board.py
Best Meeting Point.py
Best Meeting Point.py
Best Time to Buy and Sell Stock II.py
Best Time to Buy and Sell Stock II.py
Best Time to Buy and Sell Stock III.py
Best Time to Buy and Sell Stock III.py
Best Time to Buy and Sell Stock IV.py
Best Time to Buy and Sell Stock IV.py
Best Time to Buy and Sell Stock with Cooldown.py
Best Time to Buy and Sell Stock with Cooldown.py
Best Time to Buy and Sell Stock with Transaction Fee.py
Best Time to Buy and Sell Stock with Transaction Fee.py
Best Time to Buy and Sell Stock.py
Best Time to Buy and Sell Stock.py
BigCountries.py
BigCountries.py
Binary Gap.py
Binary Gap.py
Binary Number with Alternating Bits.py
Binary Number with Alternating Bits.py
Binary Search Tree Iterator.py
Binary Search Tree Iterator.py
Binary Tree Level Order Traversal II.py
Binary Tree Level Order Traversal II.py
Binary Tree Longest Consecutive Sequence II.py
Binary Tree Longest Consecutive Sequence II.py
Binary Tree Longest Consecutive Sequence.py
Binary Tree Longest Consecutive Sequence.py
Binary Tree Maximum Path Sum.py
Binary Tree Maximum Path Sum.py
Binary Tree Paths.py
Binary Tree Paths.py
Binary Tree Postorder Traversal.py
Binary Tree Postorder Traversal.py
Binary Tree Preorder Traversal.py
Binary Tree Preorder Traversal.py
Binary Tree Pruning.py
Binary Tree Pruning.py
Binary Tree Right Side View.py
Binary Tree Right Side View.py
Binary Tree Tilt.py
Binary Tree Tilt.py
Binary Tree Upside Down.py
Binary Tree Upside Down.py
Binary Tree Vertical Order Traversal.py
Binary Tree Vertical Order Traversal.py
Binary Tree Zigzag Level Order Traversal.py
Binary Tree Zigzag Level Order Traversal.py
Binary Watch.py
Binary Watch.py
Bitwise AND of Numbers Range.py
Bitwise AND of Numbers Range.py
Bold Words in String.py
Bold Words in String.py
Bomb Enemy.py
Bomb Enemy.py
Brick Wall.py
Brick Wall.py
Bulb Switcher.py
Bulb Switcher.py
Burst Balloons.py
Burst Balloons.py
Can Place Flowers.py
Can Place Flowers.py
Candy Crush.py
Candy Crush.py
Candy.py
Candy.py
Check Completeness of a Binary Tree.py
Check Completeness of a Binary Tree.py
Cherry Pickup.py
Cherry Pickup.py
Circular Array Loop.py
Circular Array Loop.py
Classes More Than 5 Students.py
Classes More Than 5 Students.py
Clone Graph.py
Clone Graph.py
Closest Binary Search Tree Value II.py
Closest Binary Search Tree Value II.py
Closest Binary Search Tree Value.py
Closest Binary Search Tree Value.py
Coin Change 2.py
Coin Change 2.py
Coin Change.py
Coin Change.py
Combination Sum IV.py
Combination Sum IV.py
Compare Version Numbers.py
Compare Version Numbers.py
Complex Number Multiplication.py
Complex Number Multiplication.py
Concatenated Words.py
Concatenated Words.py
Consecutive Available Seats.py
Consecutive Available Seats.py
Consecutive Numbers Sum.py
Consecutive Numbers Sum.py
Construct Binary Tree from Inorder and Postorder Traversal.py
Construct Binary Tree from Inorder and Postorder Traversal.py
Construct Binary Tree from Preorder and Inorder Traversal.py
Construct Binary Tree from Preorder and Inorder Traversal.py
Construct Binary Tree from String.py
Construct Binary Tree from String.py
Construct Quad Tree.py
Construct Quad Tree.py
Construct String from Binary Tree.py
Construct String from Binary Tree.py
Construct the Rectangle.py
Construct the Rectangle.py
Contains Duplicate II.py
Contains Duplicate II.py
Contains Duplicate.py
Contains Duplicate.py
Contiguous Array.py
Contiguous Array.py
Continuous Subarray Sum.py
Continuous Subarray Sum.py
Convert BST to Greater Tree.py
Convert BST to Greater Tree.py
Convert Binary Search Tree to Sorted Doubly Linked List.py
Convert Binary Search Tree to Sorted Doubly Linked List.py
Convert Sorted Array to Binary Search Tree.py
Convert Sorted Array to Binary Search Tree.py
Convert Sorted List to Binary Search Tree.py
Convert Sorted List to Binary Search Tree.py
Convert a Number to Hexadecimal.py
Convert a Number to Hexadecimal.py
Convex Polygon.py
Convex Polygon.py
Copy List with Random Pointer.py
Copy List with Random Pointer.py
Count Binary Substrings.py
Count Binary Substrings.py
Count Complete Tree Nodes.py
Count Complete Tree Nodes.py
Count Numbers with Unique Digits.py
Count Numbers with Unique Digits.py
Count Primes.py
Count Primes.py
View all files
Repository files navigation
README
Apache-2.0 license
More
items
About
leetcode solutions
leetcode.com
Topics
coding-challenge
coding-challenges
coding-interview
coding-interviews
leetcode
leetcode-python
leetcode-python-solutions
leetcode-python3
leetcode-solutions
Resources
Readme
Apache-2.0 license
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.