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
Type
/
to 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 }}
wongbenshing
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
74 Commits
74 Commits
123. Best Time to Buy and Sell Stock III
123. Best Time to Buy and Sell Stock III
125. Valid Palindrome
125. Valid Palindrome
134. Gas Station
134. Gas Station
146. LRU Cache
146. LRU Cache
157. Read N Characters Given Read4
157. Read N Characters Given Read4
158. Read N Characters Given Read4 II - Call multiple times
158. Read N Characters Given Read4 II - Call multiple times
159. Longest Substring with At Most Two Distinct Characters
159. Longest Substring with At Most Two Distinct Characters
161. One Edit Distance
161. One Edit Distance
170. Two Sum III - Data structure design
170. Two Sum III - Data structure design
188. Best Time to Buy and Sell Stock IV
188. Best Time to Buy and Sell Stock IV
200. Number of Islands
200. Number of Islands
229. Majority Element II
229. Majority Element II
23. Merge k Sorted Lists
23. Merge k Sorted Lists
230. Kth Smallest Element in a BST
230. Kth Smallest Element in a BST
274. H-Index
274. H-Index
275. H-Index II
275. H-Index II
289. Game of Life
289. Game of Life
299. Bulls and Cows
299. Bulls and Cows
340. Longest Substring with At Most K Distinct Characters
340. Longest Substring with At Most K Distinct Characters
344. Reverse String
344. Reverse String
359. Logger Rate Limiter
359. Logger Rate Limiter
380. Insert Delete GetRandom O(1)
380. Insert Delete GetRandom O(1)
399. Evaluate Division
399. Evaluate Division
4. Median of Two Sorted Arrays
4. Median of Two Sorted Arrays
41. First Missing Positive
41. First Missing Positive
42. Trapping Rain Water
42. Trapping Rain Water
429. N-ary Tree Level Order Traversal
429. N-ary Tree Level Order Traversal
45. Jump Game II
45. Jump Game II
482. License Key Formatting
482. License Key Formatting
54. Spiral Matrix
54. Spiral Matrix
542. 01 Matrix
542. 01 Matrix
55. Jump Game
55. Jump Game
57. Insert Interval
57. Insert Interval
6. ZigZag Conversion
6. ZigZag Conversion
616. Add Bold Tag in String
616. Add Bold Tag in String
635. Design Log Storage System
635. Design Log Storage System
654. Maximum Binary Tree
654. Maximum Binary Tree
657. Robot Return to Origin
657. Robot Return to Origin
66. Plus One
66. Plus One
681. Next Closest Time
681. Next Closest Time
683. K Empty Slots
683. K Empty Slots
686. Repeated String Match
686. Repeated String Match
687. Longest Univalue Path
687. Longest Univalue Path
700. Search in a Binary Search Tree
700. Search in a Binary Search Tree
701. Insert into a Binary Search Tree
701. Insert into a Binary Search Tree
703. Kth Largest Element in a Stream
703. Kth Largest Element in a Stream
707. Design Linked List
707. Design Linked List
708. Insert into a Cyclic Sorted List
708. Insert into a Cyclic Sorted List
787. unique morse code words
787. unique morse code words
80. Remove Duplicates from Sorted Array II
80. Remove Duplicates from Sorted Array II
814. Binary Tree Pruning
814. Binary Tree Pruning
844. Backspace String Compare
844. Backspace String Compare
857. Minimum Cost to Hire K Workers
857. Minimum Cost to Hire K Workers
872. Leaf-Similar Trees
872. Leaf-Similar Trees
904. Fruit Into Baskets
904. Fruit Into Baskets
914. X of a Kind in a Deck of Cards
914. X of a Kind in a Deck of Cards
921. Minimum Add to Make Parentheses Valid
921. Minimum Add to Make Parentheses Valid
933. Number of Recent Calls
933. Number of Recent Calls
942. DI String Match
942. DI String Match
944. Delete Columns to Make Sorted
944. Delete Columns to Make Sorted
947. Most Stones Removed with Same Row or Column
947. Most Stones Removed with Same Row or Column
950. Reveal Cards In Increasing Order
950. Reveal Cards In Increasing Order
965. Univalued Binary Tree
965. Univalued Binary Tree
973. K Closest Points to Origin
973. K Closest Points to Origin
976. Largest Perimeter Triangle
976. Largest Perimeter Triangle
977. Squares of a Sorted Array
977. Squares of a Sorted Array
README.md
README.md
View all files
Repository files navigation
README
More
items
LeetCode
LeetCode Python Solution
@Wongbenshing Bincheng Huang
About
LeetCode Python Solution
Resources
Readme
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.