Files
leetcode/README.md
2025-07-14 10:46:28 -04:00

10 KiB

🧠 LeetCode Practice by CarGDev

This repo tracks my journey solving LeetCode problems — not just code, but my thought process, reflections, and patterns I'm mastering.

LeetCode Problems Python License Last Commit Repository Size

Progress

Easy Problems Medium Problems Hard Problems Success Rate Streak

  • Total Problems Solved: 75+
  • Notes Written: 1+ (expanding soon)
  • Categories Covered: Arrays, Hash Maps, Dynamic Programming, Two Pointers, Binary Search, etc.

🗂 Directory Structure

  • src/exercises/: Auto-downloaded solutions via Cursor

🧩 Problem Index

# LeetCode # Title Difficulty Technology
1 001 Two Sum Easy Python
2 002 Add Two Numbers Medium Python
3 003 Longest Substring Without Repeating Characters Medium Python
4 004 Median of Two Sorted Arrays Hard Python
5 005 Longest Palindromic Substring Medium Python
6 009 Palindrome Number Easy Python
8 011 Container With Most Water Medium Python
9 013 Roman to Integer Easy Python
10 014 Longest Common Prefix Easy Python
11 015 3Sum Medium Python
12 020 Valid Parentheses Easy Python
14 022 Generate Parentheses Medium Python
15 026 Remove Duplicates from Sorted Array Easy Python
16 027 Remove Element Easy Python
17 028 Find the Index of the First Occurrence in a String Easy Python
18 035 Search Insert Position Easy Python
19 036 Valid Sudoku Medium Python
20 042 Trapping Rain Water Hard Python
22 049 Group Anagrams Medium JavaScript
23 050 Pow(x, n) Medium Python
24 055 Jump Game Medium Python
24 595 Big Countries Easy SQL
25 058 Length of Last Word Easy Python
26 066 Plus One Easy Python
27 069 Sqrt(x) Easy Python
28 070 Climbing Stairs Easy JavaScript
29 074 Search a 2D Matrix Medium Python
30 080 Remove Duplicates from Sorted Array II Medium Python
31 088 Merge Sorted Array Easy Python
32 089 Gray Code Medium Python
33 090 Subsets II Medium Python
34 091 Decode Ways Medium Python
36 121 Best Time to Buy and Sell Stock Easy Python
37 122 Best Time to Buy and Sell Stock II Medium Python
38 125 Valid Palindrome Easy Python
39 128 Longest Consecutive Sequence Medium Python
40 1302 Deepest Leaves Sum Medium Python
41 135 Candy Hard Python
42 141 Linked List Cycle Easy Python
43 149 Max Points on a Line Hard Python
45 151 Reverse Words in a String Medium Python
46 153 Find Minimum in Rotated Sorted Array Medium Python
47 155 Min Stack Medium Python
48 167 Two Sum II - Input Array Is Sorted Medium Python
49 169 Majority Element Easy Python
50 172 Factorial Trailing Zeroes Medium Python
51 189 Rotate Array Medium Python
52 202 Happy Number Easy Python
53 205 Isomorphic Strings Easy Python
54 2053 Kth Distinct String in an Array Easy Python
55 206 Reverse Linked List Easy Python
56 217 Contains Duplicate Easy Python
57 219 Contains Duplicate II Easy Python
58 228 Summary Ranges Easy Python
59 238 Product of Array Except Self Medium Python
60 242 Valid Anagram Easy Python
61 243 Shortest Word Distance Easy Python
62 244 Shortest Word Distance II Medium Python
63 245 Shortest Word Distance III Medium Python
64 246 Strobogrammatic Number Easy Python
65 248 Strobogrammatic Number III Hard Python
66 271 Encode and Decode Strings Medium JavaScript
67 290 Word Pattern Easy Python
69 347 Top K Frequent Elements Medium JavaScript
70 383 Ransom Note Easy Python
71 392 Is Subsequence Easy Python
72 704 Binary Search Easy Python
73 760 Find Anagram Mappings Easy Python
74 875 Koko Eating Bananas Medium Python
76 1048 Longest String Chain Medium JavaScript
77 1200 Minimum Absolute Difference Easy Python
80 2016 Maximum Difference Between Increasing Elements Easy Python
83 2294 Partition Array Such That Maximum Difference Is K Medium Python
85 3442 Maximum Difference Between Even and Odd Frequency I Easy Python
87 3582 Generate Tag for Video Caption Easy Python
88 3583 Count Special Triplets Easy Python

🛠️ Tools & Scripts

  • create_missing_notes.sh: Automatically creates missing note files for solved problems
  • update_difficulties.sh: Manage problem difficulties dynamically without hardcoding

Script Usage Examples:

# Create missing notes for new problems
./create_missing_notes.sh

# Add difficulty mapping for a problem
./update_difficulties.sh -a 1 Easy
./update_difficulties.sh -a 4 Hard

# List all difficulty mappings
./update_difficulties.sh -l

# Update all note files with correct difficulties
./update_difficulties.sh -u

# Remove difficulty mapping
./update_difficulties.sh -r 1

📚 Resources


This repository is a living document of my algorithmic learning journey. Each note captures my thought process, mistakes, and insights.