Skip to content

Latest commit

 

History

178 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions Repository

This repository contains solutions to various LeetCode problems, all implemented in Python programming language. Each solution is built to be efficient and easy to understand, helping to improve coding skills and problem-solving techniques.

Sr. No. LeetCode Problem GitHub Link Topics
1 33. Search in Rotated Sorted Array Solution Array Tag Binary Search
2 12. Integer to Roman Solution HashTable Math String
3 274. H-Index Solution Array Tag sorting cs
4 88. Merge Sorted Array Solution Array Tag tp sorting
5 27. Remove Element Solution Array Tag tp
6 121. Best Time to Buy and Sell Stock Solution Array Tag dp
7 122. Best Time to Buy and Sell Stock II Solution Array Tag dp greedy
8 55. Jump Game Solution Array Tag dp greedy
9 26. Remove Duplicates from Sorted Array Solution Array Tag tp
10 238. Product of Array Except Self Solution Array Tag ps
11 134. Gas Station Solution Array Tag greedy
12 80. Remove Duplicates from Sorted Array II Solution Array Tag tp
13 13. Roman to Integer Solution HashTable Math String
14 58. Length of Last Word Solution String
15 14. Longest Common Prefix Solution String String
16 151. Reverse Words in a String Solution tp String
17 125. Valid Palindrome Solution tp String
18 28. Find the Index of the First Occurrence in a String Solution tp String sm
19 392. Is Subsequence Solution tp String dp
20 167. Two Sum II - Input Array Is Sorted Solution Array Tag tp Binary Search
21 11. Container With Most Water Solution Array Tag tp greedy
22 15. 3Sum Solution Array Tag tp sorting
23 209. Minimum Size Subarray Sum Solution Array Tag Binary Search sw ps
24 3. Longest Substring Without Repeating Characters Solution HashTable String tp
25 383. Ransom Note Solution HashTable String
26 205. Isomorphic Strings Solution HashTable String
27 290. Word Pattern Solution HashTable String
28 316. Remove Duplicate Letters Solution String Stack greedy
29 1081. Smallest Subsequence of Distinct Characters Solution String Stack greedy ms
30 697. Degree of an Array Solution Array Tag HashTable
31 39. Combination Sum Solution Array Tag Bt
32 583. Delete Operation for Two Strings Solution String dp
33 46. Permutations Solution Array Tag Bt
34 5. Longest Palindromic Substring Solution tp String dp
35 56. Merge Intervals Solution Array Tag sorting
36 75. Sort Colors Solution Array Tag tp sorting
37 215. Kth Largest Element in an Array Solution Array Tag dc sorting PQ QS
38 206. Reverse Linked List Solution ll recursion
39 283. Move Zeroes Solution Array Tag tp
40 518. Coin Change II Solution Array Tag dp
41 394. Decode String Solution String Stack recursion
42 1456. Maximum Number of Vowels in a Substring of Given Length Solution String sw
43 1732. Find the Highest Altitude Solution Array Tag ps
44 1004. Max Consecutive Ones III Solution Array Tag Binary Search sw ps
45 724. Find Pivot Index Solution Array Tag ps
46 2215. Find the Difference of Two Arrays Solution Array Tag HashTable
47 2352. Equal Row and Column Pairs Solution Array Tag HashTable Matrix
48 1207. Unique Number of Occurrences Solution Array Tag HashTable
49 22. Generate Parentheses Solution String dp Bt
50 202. Happy Number Solution HashTable Math tp
51 53. Maximum Subarray Solution Array Tag dc dp
52 219. Contains Duplicate II Solution Array Tag HashTable sw
53 128. Longest Consecutive Sequence Solution Array Tag HashTable Uf
54 153. Find Minimum in Rotated Sorted Array Solution Array Tag Binary Search
55 162. Find Peak Element Solution Array Tag Binary Search
56 148. Sort List Solution ll tp dc sorting
57 131. Palindrome Partitioning Solution String dp Bt
58 648. Replace Words Solution Array Tag HashTable String String
59 658. Find K Closest Elements Solution Array Tag tp Binary Search sw sorting PQ
60 1492. The kth Factor of n Solution Math NT
61 1143. Longest Common Subsequence Solution String dp
62 226. Invert Binary Tree Solution bt dfs bfs
63 2542. Maximum Subsequence Score Solution Array Tag greedy sorting PQ
64 101. Symmetric Tree Solution bt dfs bfs
65 3355. Zero Array Transformation I Solution Array Tag ps
66 2300. Successful Pairs of Spells and Potions Solution Array Tag tp Binary Search sorting
67 90. Subsets II Solution Array Tag Bt sorting
68 79. Word Search Solution Array Tag String Bt dfs Matrix
69 208. Implement Trie (Prefix Tree) Solution HashTable String trie
70 17. Letter Combinations of a Phone Number Solution HashTable String Bt
71 70. Climbing Stairs Solution dp memoi Math
72 746. Min Cost Climbing Stairs Solution Array Tag dp
73 198. House Robber Solution Array Tag dp
74 213. House Robber II Solution Array Tag dp
75 647. Palindromic Substrings Solution tp String dp
76 322. Coin Change Solution Array Tag dp bfs
77 91. Decode Ways Solution String dp
78 152. Maximum Product Subarray Solution Array Tag dp
79 139. Word Break Solution Array Tag String dp memoi
80 300. Longest Increasing Subsequence Solution Array Tag Binary Search dp
81 416. Partition Equal Subset Sum Solution Array Tag dp
82 62. Unique Paths Solution dp Math
83 309. Best Time to Buy and Sell Stock with Cooldown Solution Array Tag dp
84 494. Target Sum Solution Array Tag dp Bt
85 97. Interleaving String Solution String dp
86 45. Jump Game II Solution Array Tag greedy
87 846. Hand of Straights Solution Array Tag greedy HashTable
88 678. Valid Parenthesis String Solution String greedy
89 66. Plus One Solution Array Tag Math
90 50. Pow(x, n) Solution Math recursion

About

This repository provides Python solutions for a range of LeetCode problems, focusing on clarity and efficiency. Each solution is designed to improve coding skills and strengthen problem-solving abilities.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages