This repository contains my solutions to Data Structures & Algorithms (DSA) problems from LeetCode, implemented in Python.
Iβve created a beginner-friendly Python handbook to make starting LeetCode less intimidating. It covers:
- Python basics (for absolute beginners)
- Built-in functions used in DSA
- Important problem-solving patterns
π Handbook: LEET Handbook.pdf
This handbook is meant to be a comfort guide β not a shortcut.
- Focus on understanding patterns
- Start with Easy problems
- Prioritize clarity over speed
- Revisit mistakes and learn from them
Build strong DSA fundamentals using Python and stay consistent with practice.
Problems Solved: 35 β
(Continuously updating)
-
1. Two Sum π View Solution
-
217. Contains Duplicate π View Solution
-
242. Valid Anagram π View Solution
-
268. Missing Number π View Solution
-
350. Intersection of Two Arrays II π View Solution
-
66. Plus One π View Solution
-
3. Longest Substring Without Repeating Characters π View Solution
-
122. Best Time to Buy and Sell Stock II π View Solution
-
128. Longest Consecutive Sequence π View Solution
-
121. Best Time to Buy and Sell Stock π View Solution
-
238. Product of Array Except Self π View Solution
-
53. Maximum Subarray π View Solution
-
724. Find Pivot Index π View Solution
-
125. Valid Palindrome π View Solution
-
344. Reverse String π View Solution
-
26. Remove Duplicates from Sorted Array π View Solution
-
283. Move Zeroes π View Solution
-
11. Container With Most Water π View Solution
-
42. Trapping Rain Water π View Solution
-
27. Remove Element π View Solution
-
977. Squares of a Sorted Array π View Solution
-
169. Majority Element π View Solution
-
189. Rotate Array π View Solution
-
438. Find All Anagrams in a String π View Solution
-
567. Permutation in String π View Solution
-
704. Binary Search π View Solution
-
35. Search Insert Position π View Solution
-
34. Find First and Last Position of Element in Sorted Array π View Solution
-
151. Reverse Words In A String π View Solution
-
162. Find Peak Element π View Solution
-
69. Sqrt(x) π View Solution
-
367. Valid Perfect Square π View Solution
-
153: Find Minimum in Rotated Sorted Array π View Solution
-
33: Search in Rotated Sorted Array π View Solution
-
1295: Find Numbers with Even Number of Digits π View Solution
- Focus is on clean logic and optimal solutions
- Problems are solved with attention to time and space complexity
- This repository will be updated regularly as I progress further in DSA