Skip to content
Navigation Menu
Toggle navigation
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
New
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
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
shubhamkumar27/Leetcode_solutions
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
312 Commits
312 Commits
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
leetcode
solutions
data-structures
leetcode-solutions
coding-interviews
interview-preparation
leetcode-python
placements
Resources
Readme
Uh oh!
There was an error while loading.
Please reload this page
.
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
No releases published
Packages
0
Uh oh!
There was an error while loading.
Please reload this page
.
Uh oh!
There was an error while loading.
Please reload this page
.
Contributors
Uh oh!
There was an error while loading.
Please reload this page
.
Languages
Python
100.0%
You can’t perform that action at this time.