Skip to content

CarGDev/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 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 JavaScript SQL License Last Commit Repository Size

βœ… Progress

Easy Problems Medium Problems Hard Problems Success Rate Streak

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

πŸ—‚ Directory Structure

  • src/exercises/: Auto-downloaded solutions via leetcode.nvim caching

🧩 Problem Index

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published