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
Developer articles
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 }}
shubhamkumar27
Leetcode_solutions
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Leetcode_solutions
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
2
(
2
)
You must be signed in to star a repository
About
Leetcode problems implemented in python.
Topics
algorithms
coding-interviews
data-structures
interview-preparation
leetcode
leetcode-python
leetcode-solutions
placements
solutions
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
312 Commits
312 Commits
Folders and files
Name
Name
Last commit message
Last commit date
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
101. Symmetric Tree.py
101. Symmetric Tree.py
102. Binary Tree Level Order Traversal.py
102. Binary Tree Level Order Traversal.py
1029. Two City Scheduling.py
1029. Two City Scheduling.py
103. Binary Tree Zigzag Level Order Traversal.py
103. Binary Tree Zigzag Level Order Traversal.py
104. Maximum Depth of Binary Tree.py
104. Maximum Depth of Binary Tree.py
105. Construct Binary Tree from Preorder and Inorder Traversal.py
105. Construct Binary Tree from Preorder and Inorder Traversal.py
107. Binary Tree Level Order Traversal II.py
107. Binary Tree Level Order Traversal II.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
114. Flatten Binary Tree to Linked List.py
114. Flatten Binary Tree to Linked List.py
118. Pascal's Triangle.py
118. Pascal's Triangle.py
119. Pascal's Triangle II.py
119. Pascal's Triangle II.py
12. Integer to Roman.py
12. Integer to Roman.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
124. Binary Tree Maximum Path Sum.py
124. Binary Tree Maximum Path Sum.py
125. Valid Palindrome.py
125. Valid Palindrome.py
127. Word Ladder.py
127. Word Ladder.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
134. Gas Station.py
134. Gas Station.py
136. Single Number.py
136. Single Number.py
137. Single Number II.py
137. Single Number II.py
14. Longest Common Prefix.py
14. Longest Common Prefix.py
141. Linked List Cycle.py
141. Linked List Cycle.py
142. Linked List Cycle II.py
142. Linked List Cycle II.py
1448. Count Good Nodes in Binary Tree.py
1448. Count Good Nodes in Binary Tree.py
15. 3Sum.py
15. 3Sum.py
150. Evaluate Reverse Polish Notation.py
150. Evaluate Reverse Polish Notation.py
1593. Split a String Into the Max Number of Unique Substrings.py
1593. Split a String Into the Max Number of Unique Substrings.py
1594. Maximum Non Negative Product in a Matrix.py
1594. Maximum Non Negative Product in a Matrix.py
16. 3Sum Closest.py
16. 3Sum Closest.py
160. Intersection of Two Linked Lists.py
160. Intersection of Two Linked Lists.py
1608. Special Array With X Elements Greater Than or Equal X.py
1608. Special Array With X Elements Greater Than or Equal X.py
1609. Even Odd Tree.py
1609. Even Odd Tree.py
168. Excel Sheet Column Title.py
168. Excel Sheet Column Title.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
171. Excel Sheet Column Number.py
171. Excel Sheet Column Number.py
18. 4Sum.py
18. 4Sum.py
19. Remove Nth Node From End of List.py
19. Remove Nth Node From End of List.py
191. Number of 1 Bits.py
191. Number of 1 Bits.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
207. Course Schedule.py
207. Course Schedule.py
208. Implement Trie (Prefix Tree).py
208. Implement Trie (Prefix Tree).py
21. Merge Two Sorted Lists.py
21. Merge Two Sorted Lists.py
210. Course Schedule II.py
210. Course Schedule II.py
215. Kth Largest Element in an Array.py
215. Kth Largest Element in an Array.py
216. Combination Sum III.py
216. Combination Sum III.py
22. Generate Parentheses.py
22. Generate Parentheses.py
226. Invert Binary Tree.py
226. Invert Binary Tree.py
23. Merge k Sorted Lists.py
23. Merge k Sorted Lists.py
231. Power of Two.py
231. Power of Two.py
237. Delete Node in a Linked List.py
237. Delete Node in a Linked List.py
24. Swap Nodes in Pairs.py
24. Swap Nodes in Pairs.py
25. Reverse Nodes in k-Group.py
25. Reverse Nodes in k-Group.py
26. Remove Duplicates from Sorted Array.py
26. Remove Duplicates from Sorted Array.py
264. Ugly Number II.py
264. Ugly Number II.py
27. Remove Element.py
27. Remove Element.py
28. Implement strStr().py
28. Implement strStr().py
29. Divide Two Integers.py
29. Divide Two Integers.py
295. Find Median from Data Stream.py
295. Find Median from Data Stream.py
3. Longest Substring Without Repeating Characters.py
3. Longest Substring Without Repeating Characters.py
30. Substring with Concatenation of All Words.py
30. Substring with Concatenation of All Words.py
306. Additive Number.py
306. Additive Number.py
31. Next Permutation.py
31. Next Permutation.py
313. Super Ugly Number.py
313. Super Ugly Number.py
32. Longest Valid Parentheses.py
32. Longest Valid Parentheses.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
34. Find First and Last Position of Element in Sorted Array.py
34. Find First and Last Position of Element in Sorted Array.py
35. Search Insert Position.py
35. Search Insert Position.py
355. Design Twitter.py
355. Design Twitter.py
36. Valid Sudoku.py
36. Valid Sudoku.py
37. Sudoku Solver.py
37. Sudoku Solver.py
38. Count and Say.py
38. Count and Say.py
380. Insert Delete GetRandom O(1).py
380. Insert Delete GetRandom O(1).py
39. Combination Sum.py
39. Combination Sum.py
392. Is Subsequence.py
392. Is Subsequence.py
4. Median of Two Sorted Arrays.py
4. Median of Two Sorted Arrays.py
40. Combination Sum II.py
40. Combination Sum II.py
406. Queue Reconstruction by Height.py
406. Queue Reconstruction by Height.py
41. First Missing Positive.py
41. First Missing Positive.py
42. Trapping Rain Water.py
42. Trapping Rain Water.py
421. Maximum XOR of Two Numbers in an Array.py
421. Maximum XOR of Two Numbers in an Array.py
43. Multiply Strings.py
43. Multiply Strings.py
44. Wildcard Matching.py
44. Wildcard Matching.py
45. Jump Game II.py
45. Jump Game II.py
46. Permutations.py
46. Permutations.py
47. Permutations II.py
47. Permutations II.py
48. Rotate Image.py
48. Rotate Image.py
49. Group Anagrams.py
49. Group Anagrams.py
5. Longest Palindromic Substring.py
5. Longest Palindromic Substring.py
View all files
Repository files navigation
README
More
items
Leetcode_solutions
Leetcode problems implemented in python.
About
Leetcode problems implemented in python.
Topics
algorithms
coding-interviews
data-structures
interview-preparation
leetcode
leetcode-python
leetcode-solutions
placements
solutions
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.