An open API service indexing awesome lists of open source software.

https://github.com/hunterdii/leetcode-potd

๐ŸŒŸ Welcome to the vibrant world of Leetcode Daily Problem of the Day solutions! Dive into a treasure trove of daily challenges meticulously crafted to sharpen your problem-solving skills. With diverse topics, detailed explanations, and a supportive community, this repository is your gateway to mastering algorithms, data structures, and more!๐Ÿš€
https://github.com/hunterdii/leetcode-potd

c competitive-programming cpp daily-coding-problem dailyprogrammer dsa-algorithm good-first-issue java leetcode leetcode-c leetcode-cpp leetcode-java leetcode-python3 leetcode-rust leetcode-solutions leetcode-solutions-cpp leetcode-solutions-python python3 rust

Last synced: 3 months ago
JSON representation

๐ŸŒŸ Welcome to the vibrant world of Leetcode Daily Problem of the Day solutions! Dive into a treasure trove of daily challenges meticulously crafted to sharpen your problem-solving skills. With diverse topics, detailed explanations, and a supportive community, this repository is your gateway to mastering algorithms, data structures, and more!๐Ÿš€

Awesome Lists containing this project

README

        

Star GIF GeeksforGeeks Problem of the Day Solutions 2024 Star GIF



## ๐Ÿ“… **December 2024 Problem of the Day Solutions** ๐Ÿ“…

| **Date** | **Problem Name** | **C** | **C++** | **Java** | **Python** | **Rust** |
|:---------:|:-----------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------:|
| 01 Dec | Check If N and Its Double Exist ๐Ÿ”ขโœ…โš–๏ธ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1346.Check%20If%20N%20and%20Its%20Double%20Exist.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1346.Check%20If%20N%20and%20Its%20Double%20Exist.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1346.Check%20If%20N%20and%20Its%20Double%20Exist.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1346.Check%20If%20N%20and%20Its%20Double%20Exist.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1346.Check%20If%20N%20and%20Its%20Double%20Exist.md#code-rust) |
| 02 Dec | Check If a Word Occurs As a Prefix of Any Word in a Sentence ๐Ÿ”ค๐Ÿ“œ๐Ÿ’ฌ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1455.Check%20If%20a%20Word%20Occurs%20As%20a%20Prefix%20of%20Any%20Word%20in%20a%20Sentence.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1455.Check%20If%20a%20Word%20Occurs%20As%20a%20Prefix%20of%20Any%20Word%20in%20a%20Sentence.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1455.Check%20If%20a%20Word%20Occurs%20As%20a%20Prefix%20of%20Any%20Word%20in%20a%20Sentence.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1455.Check%20If%20a%20Word%20Occurs%20As%20a%20Prefix%20of%20Any%20Word%20in%20a%20Sentence.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1455.Check%20If%20a%20Word%20Occurs%20As%20a%20Prefix%20of%20Any%20Word%20in%20a%20Sentence.md#code-rust) |
| 03 Dec | Adding Spaces to a String ๐Ÿ”คโœ‚๏ธ๐Ÿ’ฌ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2109.Adding%20Spaces%20to%20a%20String.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2109.Adding%20Spaces%20to%20a%20String.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2109.Adding%20Spaces%20to%20a%20String.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2109.Adding%20Spaces%20to%20a%20String.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2109.Adding%20Spaces%20to%20a%20String.md#code-rust) |
| 04 Dec | Make String a Subsequence Using Cyclic Increments ๐Ÿ“œ๐Ÿ” โžก๏ธ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2825.Make%20String%20a%20Subsequence%20Using%20Cyclic%20Increments.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2825.Make%20String%20a%20Subsequence%20Using%20Cyclic%20Increments.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2825.Make%20String%20a%20Subsequence%20Using%20Cyclic%20Increments.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2825.Make%20String%20a%20Subsequence%20Using%20Cyclic%20Increments.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2825.Make%20String%20a%20Subsequence%20Using%20Cyclic%20Increments.md#code-rust) |
| 05 Dec | Move Pieces to Obtain a String โ™Ÿ๏ธโžก๏ธ๐Ÿ”ค | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2337.Move%20Pieces%20to%20Obtain%20a%20String.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2337.Move%20Pieces%20to%20Obtain%20a%20String.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2337.Move%20Pieces%20to%20Obtain%20a%20String.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2337.Move%20Pieces%20to%20Obtain%20a%20String.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2337.Move%20Pieces%20to%20Obtain%20a%20String.md#code-rust) |
| 06 Dec | Maximum Number of Integers to Choose From a Range I ๐Ÿงฎ๐Ÿ“๐ŸŽฒ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2554.Maximum%20Number%20of%20Integers%20to%20Choose%20From%20a%20Range%20I.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2554.Maximum%20Number%20of%20Integers%20to%20Choose%20From%20a%20Range%20I.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2554.Maximum%20Number%20of%20Integers%20to%20Choose%20From%20a%20Range%20I.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2554.Maximum%20Number%20of%20Integers%20to%20Choose%20From%20a%20Range%20I.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2554.Maximum%20Number%20of%20Integers%20to%20Choose%20From%20a%20Range%20I.md#code-rust) |
| 07 Dec | Minimum Limit of Balls in a Bag ๐ŸŽ’โšฝ๐Ÿ”ข | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1760.Minimum%20Limit%20of%20Balls%20in%20a%20Bag.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1760.Minimum%20Limit%20of%20Balls%20in%20a%20Bag.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1760.Minimum%20Limit%20of%20Balls%20in%20a%20Bag.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1760.Minimum%20Limit%20of%20Balls%20in%20a%20Bag.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1760.Minimum%20Limit%20of%20Balls%20in%20a%20Bag.md#code-rust) |
| 08 Dec | Two Best Non-Overlapping Events ๐Ÿ“…๐ŸŽ‰๐Ÿ’ผ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2054.Two%20Best%20Non-Overlapping%20Events.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2054.Two%20Best%20Non-Overlapping%20Events.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2054.Two%20Best%20Non-Overlapping%20Events.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2054.Two%20Best%20Non-Overlapping%20Events.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2054.Two%20Best%20Non-Overlapping%20Events.md#code-rust) |
| 09 Dec | Special Array II ๐Ÿ”ข๐ŸŽฏ๐Ÿ‘จโ€๐Ÿ’ป | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/3152.Special%20Array%20II.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/3152.Special%20Array%20II.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/3152.Special%20Array%20II.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/3152.Special%20Array%20II.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/3152.Special%20Array%20II.md#code-rust) |
| 10 Dec | Find Longest Special Substring That Occurs Thrice I ๐Ÿ”๐Ÿ’กโœจ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2981.Find%20Longest%20Special%20Substring%20That%20Occurs%20Thrice%20I.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2981.Find%20Longest%20Special%20Substring%20That%20Occurs%20Thrice%20I.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2981.Find%20Longest%20Special%20Substring%20That%20Occurs%20Thrice%20I.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2981.Find%20Longest%20Special%20Substring%20That%20Occurs%20Thrice%20I.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2981.Find%20Longest%20Special%20Substring%20That%20Occurs%20Thrice%20I.md#code-rust) |
| 11 Dec | Maximum Beauty of an Array After Applying Operation ๐Ÿ”ข๐Ÿ’ช๐Ÿ”ง | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2779.Maximum%20Beauty%20of%20an%20Array%20After%20Applying%20Operation.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2779.Maximum%20Beauty%20of%20an%20Array%20After%20Applying%20Operation.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2779.Maximum%20Beauty%20of%20an%20Array%20After%20Applying%20Operation.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2779.Maximum%20Beauty%20of%20an%20Array%20After%20Applying%20Operation.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2779.Maximum%20Beauty%20of%20an%20Array%20After%20Applying%20Operation.md#code-rust) |
| 12 Dec | Take Gifts From the Richest Pile ๐ŸŽ๐Ÿ’Ž๐Ÿ’ฐ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2558.Take%20Gifts%20From%20the%20Richest%20Pile.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2558.Take%20Gifts%20From%20the%20Richest%20Pile.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2558.Take%20Gifts%20From%20the%20Richest%20Pile.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2558.Take%20Gifts%20From%20the%20Richest%20Pile.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2558.Take%20Gifts%20From%20the%20Richest%20Pile.md#code-rust) |
| 13 Dec | Find Score of an Array After Marking All Elements ๐Ÿงฎ๐Ÿ”ข๐ŸŽฏ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2593.%20Find%20Score%20of%20an%20Array%20After%20Marking%20All%20Elements.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2593.%20Find%20Score%20of%20an%20Array%20After%20Marking%20All%20Elements.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2593.%20Find%20Score%20of%20an%20Array%20After%20Marking%20All%20Elements.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2593.%20Find%20Score%20of%20an%20Array%20After%20Marking%20All%20Elements.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2593.%20Find%20Score%20of%20an%20Array%20After%20Marking%20All%20Elements.md#code-rust) |
| 14 Dec | Continuous Subarrays ๐Ÿงฎ๐Ÿ“๐Ÿ‘จโ€๐Ÿ’ป | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2762.%20Continuous%20Subarrays.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2762.%20Continuous%20Subarrays.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2762.%20Continuous%20Subarrays.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2762.%20Continuous%20Subarrays.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/2762.%20Continuous%20Subarrays.md#code-rust) |
| 18 Dec | Final Prices With a Special Discount in a Shop๐Ÿ›๏ธ๐Ÿ’ธ๐Ÿท๏ธ | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1475.Final%20Prices%20With%20a%20Special%20Discount%20in%20a%20Shop.md#code-c) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1475.Final%20Prices%20With%20a%20Special%20Discount%20in%20a%20Shop.md#code-c-1) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1475.Final%20Prices%20With%20a%20Special%20Discount%20in%20a%20Shop.md#code-java) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1475.Final%20Prices%20With%20a%20Special%20Discount%20in%20a%20Shop.md#code-python) | [Solution](https://github.com/Hunterdii/Leetcode-POTD/blob/main/December%202024%20Leetcode%20Solution/1475.Final%20Prices%20With%20a%20Special%20Discount%20in%20a%20Shop.md#code-rust) |

[**Explore Solutions Here!**](https://github.com/Hunterdii/Leetcode-POTD/tree/main/November%202024%20Leetcode%20Solution)




LeetCode POTD Banner


๐Ÿ‘ฅ Join the Conversation


If you have any questions, insights, or solutions to share, don't miss out on our active Discussion Hub! ๐ŸŒŸ Your participation is what makes this community great.



Discussion Badge

## ๐Ÿ’ก **Why Follow This Repository?**

- **๐Ÿ‹๏ธโ€โ™‚๏ธ Daily Practice:** Tackle a new problem every day and sharpen your problem-solving skills.
- **๐Ÿง  Diverse Topics:** Master algorithms, data structures, dynamic programming, and more.
- **๐Ÿค Community Collaboration:** Discuss and improve solutions together for mutual growth.
- **๐Ÿ“ˆ Solution Explanations:** Each problem comes with clear, well-documented solutions to aid your learning.

## ๐Ÿ” **How To Use This Repository**

1. **๐Ÿ“‚ Navigate Effortlessly:** Problems are sorted by date for easy access.
2. **๐Ÿ“ Study Explanations:** Grasp the core logic behind each solution.
3. **๐ŸŽญ Experiment & Practice:** Modify solutions or try implementing them in other languages.
4. **๐Ÿ’ฌ Engage & Collaborate:** Connect with the community to gain deeper insights.

## ๐Ÿš€ **Languages Used**

- [![C++](https://img.shields.io/badge/c++-%2300599C.svg?style=for-the-badge&logo=c%2B%2B&logoColor=white)](https://github.com/search?q=repo%3AHunterdii%2FLeetcode-POTD++language%3AC%2B%2B&type=code)
- [![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=java&logoColor=white)](https://github.com/search?q=repo%3AHunterdii%2FLeetcode-POTD++language%3AJava&type=code)
- [![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://github.com/search?q=repo%3AHunterdii%2FLeetcode-POTD++language%3APython&type=code)
- [![C](https://img.shields.io/badge/c-%2300599C.svg?style=for-the-badge&logo=c&logoColor=white)](https://github.com/search?q=repo%3AHunterdii%2FLeetcode-POTD++language%3AC&type=code)
- [![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge&logo=rust&logoColor=white)](https://github.com/search?q=repo%3AHunterdii%2FLeetcode-POTD++language%3ARust&type=code)

## ๐Ÿค **Contribution Guidelines**

We โค๏ธ contributions! Here's how you can contribute:

1. **Fork** this repository.
2. **Create** a new branch for your feature or bug fix.
3. **Commit** your changes with a clear message.
4. **Submit** a pull request and weโ€™ll review it together!

> **Note:** Follow our coding style and include meaningful comments.

## ๐Ÿ† **Your Star Counts!**



๐ŸŒŸ *If this repository helps you, don't forget to* **star it**! ๐ŸŒŸ

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=769514979&machine=basicLinux32gb&location=?)



GitHub Stars






Star History Chart




## ๐Ÿ‘ค Creator
| ![Het Patel](https://avatars.githubusercontent.com/u/124852522?v=4&s=80) |
|:--:|
| **Het Patel**
Project Maintainer |
| [![LinkedIn](https://img.icons8.com/fluency/32/000000/linkedin.png)](https://www.linkedin.com/in/patel-hetkumar-sandipbhai-8b110525a/) [![Gmail](https://img.icons8.com/fluency/32/000000/gmail.png)](mailto:[email protected]) |

For any inquiries or feedback, please contact. Happy Contributingโค



> Shaping solutions every dayโ€”thanks to everyone contributing to **Leetcode-POTD! ๐Ÿš€**





## ๐ŸŒ Star Geographical Distribution

This map shows the global distribution of stars for the repository. Click to explore more details.





Star Geographical Distribution of Leetcode-POTD



Star GIF See the geographical spread of stars on the map above! Star GIF



## ๐Ÿ† **Achievements & Highlights**
- **๐ŸŒ Global Reach**: Engaging with coders worldwide, from beginners to experts.
- **๐Ÿ”ฅ Trending Topics**: Problems that sharpen your data structures and algorithms skills.

Star GIF
Ready to Level Up Your Coding Skills? Give This Repo a Star!


Your support fuels the journey. A star not only motivates but keeps the commitment alive. Letโ€™s make coding collaborative and fun!

**โœจ Happy Coding!**