Welcome to the October LeetCoding Challenge 2024 repository! This repo is dedicated to providing daily solutions for each challenge question along with the question links, making it easier for LeetCoders to learn and follow along.
- Solutions to each day's question in the October 2024 LeetCoding Challenge.
- Links to the original LeetCode questions, allowing you to quickly access the problem statement and try it out on your own.
Each day’s challenge will be organized in its own file, containing:
- The question link.
- A well-commented solution to help you understand the approach.
- 1_Check If Array Pairs Are Divisible by k.cpp
- 2_Rank Transform of an Array.cpp
- 3_Make Sum Divisible by P.cpp
- 4_Divide Players Into Teams of Equal Skill.cpp
- 5_Permutation in String.cpp
- 6_Sentence Similarity III.cpp
- 7_Minimum String Length After Removing Substrings.cpp
- 8_Minimum Number of Swaps to Make the String Balanced.cpp
- 9_Minimum Add to Make Parentheses Valid.cpp
- 10_Maximum Width Ramp.cpp
- 11_The Number of the Smallest Unoccupied Chair.cpp
- 12_Divide Intervals Into Minimum Number of Groups.cpp
- 13_Smallest Range Covering Elements from K Lists.cpp
- 14_Maximal Score After Applying K Operations.cpp
- 15_Separate Black and White Balls.cpp
- 16_Longest Happy String.cpp
- 17_Maximum Swap.cpp
- 18_Count Number of Maximum Bitwise-OR Subsets.cpp
- 19_Find Kth Bit in Nth Binary String.cpp
- 20_Parsing A Boolean Expression.cpp
- 21_Split a String Into the Max Number of Unique Substrings.cpp
- 22_Kth Largest Sum in a Binary Tree.cpp
- 23_Cousins in Binary Tree II.cpp
- 24_Flip Equivalent Binary Trees.cpp
- 25_Remove Sub-Folders from the Filesystem.cpp
- 26_Height of Binary Tree After Subtree Removal Queries.cpp
- 27_Count Square Submatrices with All Ones.cpp
- 28_Longest Square Streak in an Array.cpp
- 29_Maximum Number of Moves in a Grid.cpp
- 30_Minimum Number of Removals to Make Mountain Array.cpp
- 31_Minimum Total Distance Traveled.cpp
This repo is designed to help:
- LeetCode enthusiasts who want a quick reference for daily challenges.
- Learners looking to improve their problem-solving skills with clear and structured solutions.
- Clone or download this repository.
- Navigate to the folder for the specific day you want to view.
- Each file will include the question link and solution.
Feel free to suggest improvements or alternative solutions by creating a pull request. Contributions are always welcome!
This repository is licensed under the MIT License. Feel free to use the solutions for learning purposes.
Happy coding and best of luck with the October LeetCoding Challenge!