Skip to content

Daily LeetCode solutions in C++23 with a focus on clean code and algorithmic efficiency. Each solution includes complexity analysis and detailed problem breakdowns.

License

Notifications You must be signed in to change notification settings

Zedespook/my-daily-leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 

Repository files navigation

💻 LeetCode Solutions

Welcome to my LeetCode solutions repository! This repository contains my solutions to various LeetCode problems, documenting my journey through algorithmic problem-solving and competitive programming. All solutions are implemented in C++.

Current Daily Streak: 75 days 🔥

Time Travel Tickets Used: 3

What is LeetCode?

LeetCode is a platform for preparing technical coding interviews. It features a vast collection of coding challenges covering various topics including algorithms, data structures, database queries, and system design.

Repository Structure

Solutions are organized by problem number and name directly under the solutions folder:

solutions/
├── 1-two-sum/
│   └── solution.cpp
├── 2-add-two-numbers/
│   └── solution.cpp
└── ...

Solutions

Date Problem Number Problem Solution
2024-11-05 2914 Minimum Number of Changes to Make Binary String Beautiful Solution
2024-11-06 3011 Find if Array Can Be Sorted Solution
2024-11-07 2275 Largest Combination With Bitwise AND Greater Than Zero Solution
2024-11-08 1829 Maximum XOR for Each Query Solution
2024-11-09 3133 Minimum Array End Solution
2024-11-10 3097 Shortest Subarray With OR at Least K II Solution
2024-11-11 2601 Prime Subtraction Operation Solution
2024-11-12 2070 Most Beautiful Item for Each Query Solution
2024-11-13 2563 Count the Number of Fair Pairs Solution
2024-11-14 2064 Minimized Maximum of Products Distributed to Any Store Solution
2024-11-15 1574 Shortest Subarray to be Removed to Make Array Sorted Solution
2024-11-16 3254 Find the Power of K-Size Subarrays I Solution
2024-11-17 862 Shortest Subarray with Sum at Least K Solution
2024-11-18 1652 Defuse the Bomb Solution
2024-11-19 2461 Maximum Sum of Distinct Subarrays With Length K Solution
2024-11-20 2516 Take K of Each Character From Left and Right Solution
2024-11-21 2257 Count Unguarded Cells in the Grid Solution
2024-11-22 1072 Flip Columns For Maximum Number of Equal Rows Solution
2024-11-23 1861 Rotating the Box Solution
2024-11-24 1975 Maximum Matrix Sum Solution
2024-11-25 773 Sliding Puzzle Solution
2024-11-26 2924 Find Champion II Solution
2024-11-27 3243 Shortest Distance After Road Addition Queries I Solution
2024-11-28 2290 Minimum Obstacle Removal to Reach Corner Solution
2024-11-29 2577 Minimum Time to Visit a Cell In a Grid Solution
2024-11-30 2097 Valid Arrangement of Pairs Solution
2024-12-01 1346 Check If N and Its Double Exist Solution
2024-12-02 1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Solution
2024-12-03 2109 Adding Spaces to a String Solution
2024-12-04 2825 Make String a Subsequence Using Cyclic Increments Solution
2024-12-05 2337 Move Pieces to Obtain a String Solution
2024-12-06 2554 Maximum Number of Integers to Choose From a Range I Solution
2024-12-07 1760 Minimum Limit of Balls in a Bag Solution
2024-12-08 2054 Two Best Non-Overlapping Events Solution
2024-12-09 3152 Special Array II Solution
2024-12-10 2981 Find Longest Special Substring That Occurs Thrice I Solution
2024-12-11 2779 Maximum Beauty of an Array After Applying Operation Solution
2024-12-12 2558 Take Gifts From the Richest Pile Solution
2024-12-13 2593 Find Score of an Array After Marking All Elements Solution
2024-12-14 2762 Continuous Subarrays Solution
2024-12-15 1792 Maximum Average Pass Ratio Solution
2024-12-16 3264 Final Array State After K Multiplication Operations I Solution
2024-12-17 2182 Construct String With Repeat Limit Solution
2024-12-18 1475 Final Prices With a Special Discount in a Shop Solution
2024-12-19 769 Max Chunks To Make Sorted Solution
2024-12-20 2415 Reverse Odd Levels of Binary Tree Solution
2024-12-21 2872 Maximum Number of K-Divisible Components Solution
2024-12-22 2940 Find Building Where Alice and Bob Can Meet Solution
2024-12-23 2471 Minimum Number of Operations to Sort a Binary Tree by Level Solution
2024-12-24 3203 Find Minimum Diameter After Merging Two Trees Solution
2024-12-25 515 Find Largest Value in Each Tree Row Solution
2024-12-26 494 Target Sum Solution
2024-12-27 1014 Best Sightseeing Pair Solution
2024-12-28 689 Maximum Sum of 3 Non-Overlapping Subarrays Solution
2024-12-29 1639 Number of Ways to Form a Target String Given a Dictionary Solution
2024-12-30 2466 Count Ways To Build Good Strings Solution
2024-12-31 983 Minimum Cost For Tickets Solution
2025-01-01 1422 Maximum Score After Splitting a String Solution
2025-01-02 2559 Count Vowel Strings in Ranges Solution
2025-01-03 2270 Number of Ways to Split Array Solution
2025-01-04 1930 Unique Length-3 Palindromic Subsequences Solution
2025-01-05 2381 Shifting Letters II Solution
2025-01-06 1769 Minimum Number of Operations to Move All Balls to Each Box Solution
2025-01-07 1408 String Matching in an Array Solution
2025-01-08 3042 Count Prefix and Suffix Pairs I Solution
2025-01-09 2185 Counting Words With a Given Prefix Solution
2025-01-10 916 Word Subsets Solution
2025-01-11 1400 Construct K Palindrome Strings Solution
2025-01-12 2116 Check if a Parentheses String Can Be Valid Solution
2025-01-13 3223 Minimum Length of String After Operations Solution
2025-01-14 2657 Find the Prefix Common Array of Two Arrays Solution
2025-01-15 2429 Minimize XOR Solution
2025-01-16 2425 Bitwise XOR of All Pairings Solution
2025-01-17 2683 Neighboring Bitwise XOR Solution
2025-01-18 1368 Minimum Cost to Make at Least One Valid Path in a Grid Solution

Personal Goals

  • Improve problem-solving skills through consistent practice
  • Master common algorithmic patterns and data structures
  • Build a strong foundation for technical interviews
  • Maintain a clean and well-documented collection of solutions

Acknowledgments

Thanks to the LeetCode team for providing such a valuable platform for learning and practice.

License

This project is licensed under the MIT License - see the LICENSE file for details.


⚠️ Note: While these solutions are public for reference, I encourage you to solve the problems on your own first. The learning comes from the problem-solving process, not just from seeing the solution!