Skip to content

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 ProblemsPythonJavaScriptSQLLicenseLast CommitRepository Size

✅ Progress

Easy ProblemsMedium ProblemsHard ProblemsSuccess RateStreak

  • 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 #TitleDifficultyTechnologyNotes
1001Two SumEasyPython📝
2002Add Two NumbersMediumPython📝
3003Longest Substring Without Repeating CharactersMediumPython📝
4004Median of Two Sorted ArraysHardPython📝
5005Longest Palindromic SubstringMediumPython📝
6009Palindrome NumberEasyPython📝
7011Container With Most WaterMediumPython📝
8013Roman to IntegerEasyPython📝
9014Longest Common PrefixEasyPython📝
100153SumMediumPython📝
11020Valid ParenthesesEasyPython📝
12022Generate ParenthesesMediumPython📝
13026Remove Duplicates from Sorted ArrayEasyPython📝
14027Remove ElementEasyPython📝
15028Find the Index of the First Occurrence in a StringEasyPython📝
16035Search Insert PositionEasyPython📝
17036Valid SudokuMediumPython📝
18042Trapping Rain WaterHardPython📝
19049Group AnagramsMediumJavaScript📝
20050Pow(x, n)MediumPython📝
21055Jump GameMediumPython📝
22058Length of Last WordEasyPython📝
23066Plus OneEasyPython📝
24069Sqrt(x)EasyPython📝
25070Climbing StairsEasyJavaScript📝
26074Search a 2D MatrixMediumPython📝
27080Remove Duplicates from Sorted Array IIMediumPython📝
28088Merge Sorted ArrayEasyPython📝
29089Gray CodeMediumPython📝
30090Subsets IIMediumPython📝
31091Decode WaysMediumPython📝
32104Maximum Depth of Binary TreeEasyPython📝
33121Best Time to Buy and Sell StockEasyPython📝
34122Best Time to Buy and Sell Stock IIMediumPython📝
35125Valid PalindromeEasyPython📝
36128Longest Consecutive SequenceMediumPython📝
37135CandyHardPython📝
38141Linked List CycleEasyPython📝
39149Max Points on a LineHardPython📝
40151Reverse Words in a StringMediumPython📝
41153Find Minimum in Rotated Sorted ArrayMediumPython📝
42155Min StackMediumPython📝
43167Two Sum II - Input Array Is SortedMediumPython📝
44169Majority ElementEasyPython📝
45172Factorial Trailing ZeroesMediumPython📝
46189Rotate ArrayMediumPython📝
47202Happy NumberEasyPython📝
48205Isomorphic StringsEasyPython📝
49206Reverse Linked ListEasyPython📝
50217Contains DuplicateEasyPython📝
51219Contains Duplicate IIEasyPython📝
52228Summary RangesEasyPython📝
53238Product of Array Except SelfMediumPython📝
54242Valid AnagramEasyPython📝
55243Shortest Word DistanceEasyPython📝
56244Shortest Word Distance IIMediumPython📝
57245Shortest Word Distance IIIMediumPython📝
58246Strobogrammatic NumberEasyPython📝
59248Strobogrammatic Number IIIHardPython📝
60271Encode and Decode StringsMediumJavaScript📝
61274H-IndexMediumPython📝
62290Word PatternEasyPython📝
63347Top K Frequent ElementsMediumJavaScript📝
64383Ransom NoteEasyPython📝
65392Is SubsequenceEasyPython📝
66595Big CountriesEasySQL📝
67704Binary SearchEasyPython📝
68760Find Anagram MappingsEasyPython📝
69875Koko Eating BananasMediumPython📝
701048Longest String ChainMediumJavaScript📝
711200Minimum Absolute DifferenceEasyPython📝
721302Deepest Leaves SumMediumPython📝
732016Maximum Difference Between Increasing ElementsEasyPython📝
742053Kth Distinct String in an ArrayEasyPython📝
752116Check if a Parentheses String Can Be ValidMediumPython📝
762294Partition Array Such That Maximum Difference Is KMediumPython📝
773442Maximum Difference Between Even and Odd Frequency IEasyPython📝
783582Generate Tag for Video CaptionEasyPython📝
793583Count Special TripletsEasyPython📝

🛠️ 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

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages