Skip to content

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.

Notifications You must be signed in to change notification settings

AnkitaMungalpara/Leetcode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages