Welcome to the GeeksforGeeks Solutions repository!
Here, you'll find daily solutions to GeeksforGeeks problems, complete with optimized code and detailed explanations in multiple programming languages.
| Date | Problem Name | Jump into Code | Explanation | Difficulty Level |
|---|---|---|---|---|
| 26 November 2025 | AND In Range | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 25 November 2025 | Game of XOR | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 24 November 2025 | Second Best Minimum Spanning Tree | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 23 November 2025 | Maximum Stone Removal | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 22 November 2025 | Minimum Operations to Connect Hospitals | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 21 November 2025 | Shortest Path Using Atmost One Curved Edge | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 20 November 2025 | Make Strings Equal | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 19 November 2025 | Path With Minimum Effort | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 18 November 2025 | Number of Ways to Arrive at Destination | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 17 November 2025 | Max Sum Increasing Subsequence | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 16 November 2025 | Longest Common Increasing Subsequence | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 15 November 2025 | Minimum Cost to Cut a Stick of length N | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 14 November 2025 | Minimum Cost to Merge Stones | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 13 November 2025 | Interleaved Strings | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 12 November 2025 | Wildcard Pattern Matching | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 11 November 2025 | Shortest Common Supersequence | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 10 November 2025 | Stock Buy and Sell with Cooldown | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 09 November 2025 | Chocolate Pickup II | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 08 November 2025 | Number of paths in a matrix with k coins | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 07 November 2025 | Weighted Job Scheduling | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 06 November 2025 | Ways To Tile A Floor | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 05 November 2025 | Get Minimum Squares | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 04 November 2025 | Frog Jump | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 03 November 2025 | Safe States | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 02 November 2025 | Max DAG Edges | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 01 November 2025 | Course Schedule II | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 31 October 2025 | Shortest Cycle | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 30 October 2025 | Replace O's with X's | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 29 October 2025 | Graph Diameter | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 28 October 2025 | Distance of nearest cell having 1 | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 27 October 2025 | Find K Smallest Sum Pairs | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 26 October 2025 | Minimum Cost of ropes | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 25 October 2025 | Minimum Steps to Halve Sum | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 24 October 2025 | Split Array Subsequences | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 23 October 2025 | K Closest Points to Origin | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 22 October 2025 | Nearly sorted | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 21 October 2025 | Top K Frequent in Array | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 20 October 2025 | Number of BST From Array | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 19 October 2025 | K closest Values | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 18 October 2025 | Median of BST | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 17 October 2025 | BST to greater sum tree | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 16 October 2025 | Remove BST keys outside given range | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 15 October 2025 | k-th Smallest in BST | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 14 October 2025 | Sum of Nodes in BST Range | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 13 October 2025 | Maximum Non-Adjacent Nodes Sum | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 12 October 2025 | Distribute Candies | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 11 October 2025 | Maximum path sum | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 10 October 2025 | ZigZag Tree Traversal | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 09 October 2025 | Postorder Traversal | C++, Java, JavaScript, Python3 | Explanation | Easy |
| 08 October 2025 | Construct Tree from Preorder & Postorder | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 07 October 2025 | Bottom View of Binary Tree | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 06 October 2025 | The Knight's tour problem | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 05 October 2025 | Rat in a Maze | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 04 October 2025 | Expression Add Operators | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 03 October 2025 | Possible Words From Phone Digits | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 02 October 2025 | Unique K-Number Sum | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 01 October 2025 | All Unique Permutations of an array | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 30 September 2025 | Generate all binary strings | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 29 September 2025 | Maximum subarray sum 2 | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 28 September 2025 | Longest Bounded-Difference Subarray | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 27 September 2025 | Minimum K Consecutive Bit Flips | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 26 September 2025 | Rotate Deque By K | C++, Java, JavaScript, Python3 | Explanation | Easy |
| 25 September 2025 | Generate Binary Numbers | C++, Java, JavaScript, Python3 | Explanation | Easy |
| 24 September 2025 | Design MinMax Queue | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 23 September 2025 | Queue Reversal | C++, Java, JavaScript, Python3 | Explanation | Easy |
| 22 September 2025 | Max of min for every window size | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 21 September 2025 | Max rectangle | C++, Java, JavaScript, Python3 | Explanation | Hard |
| 20 September 2025 | Longest Subarray Length | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 19 September 2025 | Min Add to Make Parentheses Valid | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 18 September 2025 | Next Greater Element in Circular Array | C++, Java, JavaScript, Python3 | Explanation | Medium |
| 17 September 2025 | Decode the string | JavaScript | Explanation | Medium |
We welcome contributions to improve and expand our repository of GeeksforGeeks solutions.
To contribute, follow these steps:
- Fork the repository on GitHub.
- Create a new branch from
main(git checkout -b feature/add-new-solution). - Add your solution for a new or existing problem in the designated format.
- Commit your changes (
git commit -am 'Add new solution for Problem X'). - Push your branch to your fork (
git push origin feature/add-new-solution). - Submit a Pull Request, providing a brief description of your changes.
Thank you for helping us make these solutions accessible, optimized, and valuable to the community!
Stay connected and get updates on the latest solutions, explanations, and coding tips:
- 📸 Instagram: Follow me for daily coding content
▶️ YouTube: Watch tutorials & problem walkthroughs- 💬 Telegram Group: Join our coding community
Follow along for daily coding content, tips, and problem-solving strategies 🚀