Skip to content

Latest commit

 

History

890 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Daily LeetCode Solutions

LeetCode Python Problems Solved Contributions Welcome

A curated collection of 158+ daily LeetCode problem solutions implemented cleanly and efficiently with optimal time & space complexity in Python.


📊 Summary & Progress

Difficulty Count Badge
Easy 38 ![](https://img.shields.io/badge/-Easy-brightgreen)
Medium 87 ![](https://img.shields.io/badge/-Medium-orange)
Hard 33 ![](https://img.shields.io/badge/-Hard-red)
Total Solved 158 ![](https://img.shields.io/badge/-158_Problems-blue)

📂 Repository Structure

Each problem is organized in its own dedicated directory containing:

  • README.md: Problem statement, constraints, and LeetCode link.
  • Solution file(s): Clean source code (e.g. .py) with optimized algorithmic approaches.
daily-leetcode/
├── 1-two-sum/
│   ├── README.md
│   └── two-sum.py
├── 121-best-time-to-buy-and-sell-stock/
│   ├── README.md
│   └── best-time-to-buy-and-sell-stock.py
...

📝 Problems Solved

# Problem Title Difficulty Language Solution
1 Two Sum Easy Python two-sum.py
2 Add Two Numbers Medium Python add-two-numbers.py
3 Longest Substring Without Repeating Characters Medium Python longest-substring-without-repeating-characters.py
4 Median of Two Sorted Arrays Hard Python median-of-two-sorted-arrays.py
5 Longest Palindromic Substring Medium Python longest-palindromic-substring.py
6 Zigzag Conversion Medium Python zigzag-conversion.py
7 Reverse Integer Medium Python reverse-integer.py
9 Palindrome Number Easy Python palindrome-number.py
10 Regular Expression Matching Hard Python regular-expression-matching.py
11 Container With Most Water Medium Python README.md
12 Integer to Roman Medium Python integer-to-roman.py
13 Roman to Integer Easy Python roman-to-integer.py
14 Longest Common Prefix Easy Python longest-common-prefix.py
15 3Sum Medium Python 3sum.py
16 3Sum Closest Medium Python 3sum-closest.py
17 Letter Combinations of a Phone Number Medium Python letter-combinations-of-a-phone-number.py
18 4Sum Medium Python 4sum.py
19 Remove Nth Node From End of List Medium Python remove-nth-node-from-end-of-list.py
20 Valid Parentheses Easy Python valid-parentheses.py
21 Merge Two Sorted Lists Easy Python merge-two-sorted-lists.py
22 Generate Parentheses Medium Python generate-parentheses.py
23 Merge k Sorted Lists Hard Python merge-k-sorted-lists.py
24 Swap Nodes in Pairs Medium Python swap-nodes-in-pairs.py
25 Reverse Nodes in k-Group Hard Python reverse-nodes-in-k-group.py
26 Remove Duplicates from Sorted Array Easy Python remove-duplicates-from-sorted-array.py
27 Remove Element Easy Python remove-element.py
28 Find the Index of the First Occurrence in a String Easy Python find-the-index-of-the-first-occurrence-in-a-string.py
29 Divide Two Integers Medium Python divide-two-integers.py
30 Substring with Concatenation of All Words Hard Python substring-with-concatenation-of-all-words.py
31 Next Permutation Medium Python next-permutation.py
32 Longest Valid Parentheses Hard Python longest-valid-parentheses.py
33 Search in Rotated Sorted Array Medium Python search-in-rotated-sorted-array.py
34 Find First and Last Position of Element in Sorted Array Medium Python find-first-and-last-position-of-element-in-sorted-array.py
35 Search Insert Position Easy Python search-insert-position.py
36 Valid Sudoku Medium Python valid-sudoku.py
37 Sudoku Solver Hard Python sudoku-solver.py
38 Count and Say Medium Python count-and-say.py
39 Combination Sum Medium Python combination-sum.py
40 Combination Sum II Medium Python combination-sum-ii.py
41 First Missing Positive Hard Python first-missing-positive.py
42 Trapping Rain Water Hard Python trapping-rain-water.py
43 Multiply Strings Medium Python multiply-strings.py
44 Wildcard Matching Hard Python wildcard-matching.py
45 Jump Game II Medium Python jump-game-ii.py
46 Permutations Medium Python README.md
47 Permutations II Medium Python permutations-ii.py
48 Rotate Image Medium Python rotate-image.py
49 Group Anagrams Medium Python group-anagrams.py
50 Pow(x, n) Medium Python powx-n.py
51 N-Queens Hard Python n-queens.py
52 N-Queens II Hard Python n-queens-ii.py
53 Maximum Subarray Medium Python maximum-subarray.py
54 Spiral Matrix Medium Python spiral-matrix.py
55 Jump Game Medium Python jump-game.py
56 Merge Intervals Medium Python merge-intervals.py
57 Insert Interval Medium Python insert-interval.py
58 Length of Last Word Easy Python length-of-last-word.py
59 Spiral Matrix II Medium Python spiral-matrix-ii.py
60 Permutation Sequence Hard Python permutation-sequence.py
61 Rotate List Medium Python rotate-list.py
62 Unique Paths Medium Python unique-paths.py
63 Unique Paths II Medium Python unique-paths-ii.py
64 Minimum Path Sum Medium Python minimum-path-sum.py
65 Valid Number Hard Python valid-number.py
66 Plus One Easy Python plus-one.py
67 Add Binary Easy Python add-binary.py
68 Text Justification Hard Python text-justification.py
69 Sqrt(x) Easy Python sqrtx.py
70 Climbing Stairs Easy Python climbing-stairs.py
71 Simplify Path Medium Python simplify-path.py
72 Edit Distance Medium Python edit-distance.py
73 Set Matrix Zeroes Medium Python set-matrix-zeroes.py
74 Search a 2D Matrix Medium Python search-a-2d-matrix.py
75 Sort Colors Medium Python sort-colors.py
76 Minimum Window Substring Hard Python minimum-window-substring.py
77 Combinations Medium Python combinations.py
78 Subsets Medium Python subsets.py
79 Word Search Medium Python word-search.py
80 Remove Duplicates from Sorted Array II Medium Python remove-duplicates-from-sorted-array-ii.py
81 Search in Rotated Sorted Array II Medium Python search-in-rotated-sorted-array-ii.py
82 Remove Duplicates from Sorted List II Medium Python remove-duplicates-from-sorted-list-ii.py
83 Remove Duplicates from Sorted List Easy Python remove-duplicates-from-sorted-list.py
115 Distinct Subsequences Hard Python distinct-subsequences.py
121 Best Time to Buy and Sell Stock Easy Python best-time-to-buy-and-sell-stock.py
287 Find the Duplicate Number Medium Python find-the-duplicate-number.py
628 Maximum Product of Three Numbers Easy Python maximum-product-of-three-numbers.py
864 Image Overlap Medium Python image-overlap.py
909 Stone Game Medium Python stone-game.py
977 Distinct Subsequences II Hard Python distinct-subsequences-ii.py
1159 Smallest Subsequence of Distinct Characters Medium Python smallest-subsequence-of-distinct-characters.py
1212 Sequential Digits Medium Python sequential-digits.py
1240 Stone Game II Medium Python stone-game-ii.py
1256 Rank Transform of an Array Easy Python rank-transform-of-an-array.py
1386 Shift 2D Grid Easy Python shift-2d-grid.py
1487 Cinema Seat Allocation Medium Python cinema-seat-allocation.py
1522 Stone Game III Hard Python stone-game-iii.py
1574 Maximum Product of Two Elements in an Array Easy Python maximum-product-of-two-elements-in-an-array.py
1617 Stone Game IV Hard Python stone-game-iv.py
1685 Stone Game V Hard Python stone-game-v.py
2002 Stone Game VIII Hard Python stone-game-viii.py
2039 Sum Game Medium Python sum-game.py
2106 Find Greatest Common Divisor of Array Easy Python find-greatest-common-divisor-of-array.py
2156 Stone Game IX Medium Python stone-game-ix.py
2182 Find the Minimum and Maximum Number of Nodes Between Critical Points Medium Python find-the-minimum-and-maximum-number-of-nodes-between-critical-points.py
2212 Removing Minimum and Maximum From Array Medium Python removing-minimum-and-maximum-from-array.py
2319 Longest Substring of One Repeating Character Hard Python longest-substring-of-one-repeating-character.py
2347 Count Nodes Equal to Average of Subtree Medium Python count-nodes-equal-to-average-of-subtree.py
2582 Minimum Score of a Path Between Two Cities Medium Python minimum-score-of-a-path-between-two-cities.py
2793 Count the Number of Complete Components Medium Python count-the-number-of-complete-components.py
2914 Find the Safest Path in a Grid Medium Python find-the-safest-path-in-a-grid.py
3150 Shortest and Lexicographically Smallest Beautiful String Medium Python shortest-and-lexicographically-smallest-beautiful-string.py
3219 Make Lexicographically Smallest Array by Swapping Elements Medium Python make-lexicographically-smallest-array-by-swapping-elements.py
3225 Length of Longest Subarray With at Most K Frequency Medium Python length-of-longest-subarray-with-at-most-k-frequency.py
3236 Smallest Missing Integer Greater Than Sequential Prefix Sum Easy Python README.md
3275 Minimum Number of Pushes to Type Word I Easy Python minimum-number-of-pushes-to-type-word-i.py
3276 Minimum Number of Pushes to Type Word II Medium Python minimum-number-of-pushes-to-type-word-ii.py
3349 Maximum Length Substring With Two Occurrences Easy Python maximum-length-substring-with-two-occurrences.py
3375 Kth Smallest Amount With Single Denomination Combination Hard Python kth-smallest-amount-with-single-denomination-combination.py
3558 Find a Safe Walk Through a Grid Medium Python find-a-safe-walk-through-a-grid.py
3561 Remove Methods From Project Medium Python remove-methods-from-project.py
3562 Maximum Score of Non-overlapping Intervals Hard Python maximum-score-of-non-overlapping-intervals.py
3583 Sorted GCD Pair Queries Hard Python sorted-gcd-pair-queries.py
3584 Find the Lexicographically Smallest Valid Sequence Medium Python find-the-lexicographically-smallest-valid-sequence.py
3608 Find the Number of Subsequences With Equal GCD Hard Python find-the-number-of-subsequences-with-equal-gcd.py
3626 Smallest Divisible Digit Product I Easy Python smallest-divisible-digit-product-i.py
3635 Smallest Divisible Digit Product II Hard Python smallest-divisible-digit-product-ii.py
3705 Find the Largest Almost Missing Integer Easy Python find-the-largest-almost-missing-integer.py
3799 Unique 3-Digit Even Numbers Easy Python unique-3-digit-even-numbers.py
3804 Maximize Active Section with Trade II Hard Python maximize-active-section-with-trade-ii.py
3805 Maximize Active Section with Trade I Medium Python maximize-active-section-with-trade-i.py
3812 Smallest Palindromic Rearrangement I Medium Python smallest-palindromic-rearrangement-i.py
3813 Smallest Palindromic Rearrangement II Hard Python smallest-palindromic-rearrangement-ii.py
3820 Number of Unique XOR Triplets II Medium Python number-of-unique-xor-triplets-ii.py
3824 Number of Unique XOR Triplets I Medium Python number-of-unique-xor-triplets-i.py
3838 Path Existence Queries in a Graph I Medium Python path-existence-queries-in-a-graph-i.py
3852 Path Existence Queries in a Graph II Hard Python README.md
3859 Maximum Product of Two Digits Easy Python maximum-product-of-two-digits.py
3870 Minimum Moves to Clean the Classroom Medium Python minimum-moves-to-clean-the-classroom.py
3918 Check Divisibility by Digit Sum and Product Easy Python check-divisibility-by-digit-sum-and-product.py
3995 GCD of Odd and Even Sums Easy Python gcd-of-odd-and-even-sums.py
4020 Lexicographically Smallest Permutation Greater Than Target Medium Python lexicographically-smallest-permutation-greater-than-target.py
4033 Longest Subsequence With Non-Zero Bitwise XOR Medium Python longest-subsequence-with-non-zero-bitwise-xor.py
4037 Lexicographically Smallest Palindromic Permutation Greater Than Target Hard Python lexicographically-smallest-palindromic-permutation-greater-than-target.py
4080 Smallest Missing Multiple of K Easy Python smallest-missing-multiple-of-k.py
4107 Find Missing Elements Easy Python find-missing-elements.py
4135 Concatenate Non-Zero Digits and Multiply by Sum I Easy Python concatenate-non-zero-digits-and-multiply-by-sum-i.py
4136 Concatenate Non-Zero Digits and Multiply by Sum II Medium Python concatenate-non-zero-digits-and-multiply-by-sum-ii.py
4203 Count of Unfinished Tasks After Each Shift Medium Python count-of-unfinished-tasks-after-each-shift.py
4242 Sum of GCD of Formed Pairs Medium Python sum-of-gcd-of-formed-pairs.py
4245 Count Commas in Range Easy Python count-commas-in-range.py
4248 Count Commas in Range II Medium Python README.md
4256 Construct Uniform Parity Array I Easy Python construct-uniform-parity-array-i.py
4258 Construct Uniform Parity Array II Medium Python construct-uniform-parity-array-ii.py
4284 Smallest Stable Index I Easy Python smallest-stable-index-i.py
4285 Smallest Stable Index II Medium Python smallest-stable-index-ii.py
4323 Count Subarrays With Even Odd Ratio I Medium Python count-subarrays-with-even-odd-ratio-i.py
4324 Count Subarrays With Even Odd Ratio II Hard Python count-subarrays-with-even-odd-ratio-ii.py
4371 Maximize Pair Strength Using GCD Easy Python maximize-pair-strength-using-gcd.py

About

Daily LeetCode solutions in Python | Clean, optimized Data Structures and Algorithms (DSA) practice with problem catalog and roadmap.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages