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 }}
denistanjingyu
/
LeetCode-Algorithms-Problems-Python3-
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
134 Commits
134 Commits
1. Two Sum.py
1. Two Sum.py
100. Same Tree.py
100. Same Tree.py
101. Symmetric Tree.py
101. Symmetric Tree.py
104. Maximum Depth of Binary Tree.py
104. Maximum Depth of Binary Tree.py
108. Convert Sorted Array to Binary Search Tree.py
108. Convert Sorted Array to Binary Search Tree.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
112. Path Sum.py
112. Path Sum.py
118. Pascal's Triangle.py
118. Pascal's Triangle.py
119. Pascal's Triangle II.py
119. Pascal's Triangle II.py
121. Best Time to Buy and Sell Stock.py
121. Best Time to Buy and Sell Stock.py
125. Valid Palindrome.py
125. Valid Palindrome.py
128. Longest Consecutive Sequence.py
128. Longest Consecutive Sequence.py
13. Roman to Integer.py
13. Roman to Integer.py
136. Single Number.py
136. Single Number.py
14. Longest Common Prefix.py
14. Longest Common Prefix.py
141. Linked List Cycle.py
141. Linked List Cycle.py
143. Reorder List.py
143. Reorder List.py
144. Binary Tree Preorder Traversal.py
144. Binary Tree Preorder Traversal.py
145. Binary Tree Postorder Traversal.py
145. Binary Tree Postorder Traversal.py
15. 3Sum.py
15. 3Sum.py
150. Evaluate Reverse Polish Notation.py
150. Evaluate Reverse Polish Notation.py
153. Find Minimum in Rotated Sorted Array.py
153. Find Minimum in Rotated Sorted Array.py
155. Min Stack.py
155. Min Stack.py
160. Intersection of Two Linked Lists.py
160. Intersection of Two Linked Lists.py
167. Two Sum II - Input Array Is Sorted.py
167. Two Sum II - Input Array Is Sorted.py
168. Excel Sheet Column Title.py
168. Excel Sheet Column Title.py
169. Majority Element.py
169. Majority Element.py
171. Excel Sheet Column Number.py
171. Excel Sheet Column Number.py
19. Remove Nth Node From End of List.py
19. Remove Nth Node From End of List.py
190. Reverse Bits.py
190. Reverse Bits.py
191. Number of 1 Bits.py
191. Number of 1 Bits.py
20. Valid Parentheses.py
20. Valid Parentheses.py
202. Happy Number.py
202. Happy Number.py
203. Remove Linked List Elements.py
203. Remove Linked List Elements.py
205. Isomorphic Strings.py
205. Isomorphic Strings.py
206. Reverse Linked List.py
206. Reverse Linked List.py
21. Merge Two Sorted Lists.py
21. Merge Two Sorted Lists.py
217. Contains Duplicate.py
217. Contains Duplicate.py
219. Contains Duplicate II.py
219. Contains Duplicate II.py
22. Generate Parentheses.py
22. Generate Parentheses.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
231. Power of Two.py
231. Power of Two.py
232. Implement Queue using Stacks.py
232. Implement Queue using Stacks.py
234. Palindrome Linked List.py
234. Palindrome Linked List.py
235. Lowest Common Ancestor of a Binary Search Tree.py
235. Lowest Common Ancestor of a Binary Search Tree.py
237. Delete Node in a Linked List.py
237. Delete Node in a Linked List.py
238. Product of Array Except Self.py
238. Product of Array Except Self.py
239. Sliding Window Maximum.py
239. Sliding Window Maximum.py
242. Valid Anagram.py
242. Valid Anagram.py
257. Binary Tree Paths.py
257. Binary Tree Paths.py
258. Add Digits.py
258. Add Digits.py
26. Remove Duplicates from Sorted Array.py
26. Remove Duplicates from Sorted Array.py
263. Ugly Number.py
263. Ugly Number.py
268. Missing Number.py
268. Missing Number.py
27. Remove Element.py
27. Remove Element.py
278. First Bad Version.py
278. First Bad Version.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
292. Nim Game.py
292. Nim Game.py
3. Longest Substring Without Repeating Characters.py
3. Longest Substring Without Repeating Characters.py
303. Range Sum Query - Immutable.py
303. Range Sum Query - Immutable.py
326. Power of Three.py
326. Power of Three.py
33. Search in Rotated Sorted Array.py
33. Search in Rotated Sorted Array.py
338. Counting Bits.py
338. Counting Bits.py
342. Power of Four.py
342. Power of Four.py
344. Reverse String.py
344. Reverse String.py
345. Reverse Vowels of a String.py
345. Reverse Vowels of a String.py
347. Top K Frequent Elements.py
347. Top K Frequent Elements.py
349. Intersection of Two Arrays.py
349. Intersection of Two Arrays.py
35. Search Insert Position.py
35. Search Insert Position.py
350. Intersection of Two Arrays II.py
350. Intersection of Two Arrays II.py
36. Valid Sudoku.py
36. Valid Sudoku.py
367. Valid Perfect Square.py
367. Valid Perfect Square.py
374. Guess Number Higher or Lower.py
374. Guess Number Higher or Lower.py
383. Ransom Note.py
383. Ransom Note.py
387. First Unique Character in a String.py
387. First Unique Character in a String.py
389. Find the Difference.py
389. Find the Difference.py
392. Is Subsequence.py
392. Is Subsequence.py
4. Median of Two Sorted Arrays.py
4. Median of Two Sorted Arrays.py
401. Binary Watch.py
401. Binary Watch.py
404. Sum of Left Leaves.py
404. Sum of Left Leaves.py
405. Convert a Number to Hexadecimal.py
405. Convert a Number to Hexadecimal.py
409. Longest Palindrome.py
409. Longest Palindrome.py
412. Fizz Buzz.py
412. Fizz Buzz.py
414. Third Maximum Number.py
414. Third Maximum Number.py
415. Add Strings.py
415. Add Strings.py
42. Trapping Rain Water.py
42. Trapping Rain Water.py
424. Longest Repeating Character Replacement.py
424. Longest Repeating Character Replacement.py
434. Number of Segments in a String.py
434. Number of Segments in a String.py
441. Arranging Coins.py
441. Arranging Coins.py
448. Find All Numbers Disappeared in an Array.py
448. Find All Numbers Disappeared in an Array.py
455. Assign Cookies.py
455. Assign Cookies.py
459. Repeated Substring Pattern.py
459. Repeated Substring Pattern.py
461. Hamming Distance.py
461. Hamming Distance.py
463. Island Perimeter.py
463. Island Perimeter.py
View all files
Repository files navigation
README
More
items
LeetCode Algorithms Problems (Python3)
About
Algorithms Practice (Python3)
https://leetcode.com/
Topics
algorithm
algorithms
algorithms-and-data-structures
interview-preparation
leetcode
machinelearningengineering
practice
python
python3
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.