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 }}
HashTag42
LeetCode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCode
Public
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
Coding challenges
leetcode.com/
Topics
coding-challenges
leetcode
leetcode-python3
leetcode-solutions
python3
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
300 Commits
300 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.claude
.claude
.vscode
.vscode
1. Two Sum
1. Two Sum
102. Binary Tree Level Order Traversal
102. Binary Tree Level Order Traversal
1047. Remove All Adjacent Duplicates in String
1047. Remove All Adjacent Duplicates in String
1071. Greatest Common Divisor of Strings
1071. Greatest Common Divisor of Strings
1137. N-th Tribonacci Number
1137. N-th Tribonacci Number
118. Pascal Triangle
118. Pascal Triangle
1207. Unique Number of Occurrences
1207. Unique Number of Occurrences
121. Best Time to Buy and Sell Stock
121. Best Time to Buy and Sell Stock
125. Valid Palindrome
125. Valid Palindrome
13. Roman To Integer
13. Roman To Integer
1342. Number of Steps to Reduce a Number to Zero/
py
1342. Number of Steps to Reduce a Number to Zero/
py
136. Unique Number
136. Unique Number
14. Longest Common Prefix
14. Longest Common Prefix
1431. Kids With the Greatest Number of Candies
1431. Kids With the Greatest Number of Candies
1480. Running Sum of 1d Array/
py
1480. Running Sum of 1d Array/
py
167. Two Sum II - Input Array Is Sorted
167. Two Sum II - Input Array Is Sorted
1672. Richest Customer Wealth/
py
1672. Richest Customer Wealth/
py
169. Majority Element
169. Majority Element
1732. Find the Highest Altitude
1732. Find the Highest Altitude
1768. Merge Strings Alternately
1768. Merge Strings Alternately
1791. Find Center of Star Graph
1791. Find Center of Star Graph
1991. Find the Middle Index of Array
1991. Find the Middle Index of Array
2. Add Two Numbers
2. Add Two Numbers
20. Valid Parentheses
20. Valid Parentheses
202. Happy Number
202. Happy Number
206. Reverse Linked List
206. Reverse Linked List
21. Merge Two Sorted Lists
21. Merge Two Sorted Lists
217. Contains Duplicate
217. Contains Duplicate
219. Contains Duplicate II
219. Contains Duplicate II
2215. Find the Difference of Two Arrays
2215. Find the Difference of Two Arrays
2235. Add Two Integers/
py
2235. Add Two Integers/
py
2236. Root Equals Sum of Children/
py
2236. Root Equals Sum of Children/
py
231. Power of Two
231. Power of Two
242. Valid Anagram
242. Valid Anagram
26. Remove Duplicates from Sorted Array
26. Remove Duplicates from Sorted Array
268. Missing Number
268. Missing Number
27. Remove Element
27. Remove Element
28. Find the Index of the First Occurence of a String
28. Find the Index of the First Occurence of a String
283. Move Zeroes
283. Move Zeroes
3. Longest Substring Without Repeating Characters
3. Longest Substring Without Repeating Characters
338. Counting Bits
338. Counting Bits
344. Reverse String
344. Reverse String
345. Reverse Vowels of a String
345. Reverse Vowels of a String
349. Intersection of Two Arrays
349. Intersection of Two Arrays
35. Search Insert Position
35. Search Insert Position
374. Guess Number Higher or Lower
374. Guess Number Higher or Lower
383. Ransom Note/
py
383. Ransom Note/
py
387. First Unique Character in a String
387. First Unique Character in a String
392. Is Subsequence
392. Is Subsequence
408. Valid Word Abbreviation/
py
408. Valid Word Abbreviation/
py
412. Fizz Buzz/
py
412. Fizz Buzz/
py
496. Next Greater Element I
496. Next Greater Element I
50. Pow(x, n)
50. Pow(x, n)
509. Fibonacci Number/
py
509. Fibonacci Number/
py
58. Length of Last Word
58. Length of Last Word
605. Can Place Flowers
605. Can Place Flowers
643. Maximum Average Subarray I
643. Maximum Average Subarray I
66. Plus One
66. Plus One
67. Add Binary
67. Add Binary
680. Valid Palindrome II
680. Valid Palindrome II
69. Sqrt(x)
69. Sqrt(x)
70. Climbing Stairs
70. Climbing Stairs
700. Search in a Binary Search Tree
700. Search in a Binary Search Tree
724. Find Pivot Index
724. Find Pivot Index
733. Flood Fill/
py
733. Flood Fill/
py
746. Min Cost Climbing Stairs
746. Min Cost Climbing Stairs
796. Rotate String
796. Rotate String
876. Middle of the Linked List/
py
876. Middle of the Linked List/
py
88. Merge Sorted Array
88. Merge Sorted Array
9. Palindrome Number
9. Palindrome Number
933. Number of Recent Calls
933. Number of Recent Calls
94. Binary Tree Inorder Traversal
94. Binary Tree Inorder Traversal
997. Find the Town Judge/
py
997. Find the Town Judge/
py
Shared
Shared
.flake8
.flake8
.gitattributes
.gitattributes
.gitignore
.gitignore
LeetCode.sln
LeetCode.sln
coverage.runsettings
coverage.runsettings
View all files
About
Coding challenges
leetcode.com/
Topics
coding-challenges
leetcode
leetcode-python3
leetcode-solutions
python3
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.