README

GeeksforGeeks Problem of the Day Solutions 2025

🚀 My Open-Source Projects

Date

Problem Name

C

C++

Java

Python

01 July

Substrings of length k with k-1 distinct elements 🔠🪟🧮

02 July

Longest subarray with Atmost two distinct integers 🔢⌛🐇

03 July

Longest Substring with K Uniques 🔠🧩📘

04 July

Subarrays With At Most K Distinct Integers 🔢📊🧵

05 July

Max Score from Subarray Mins 🧠💯🪜

06 July

Maximum Sum Combination ➕🏆💡

07 July

Next Greater Element in Circular Array 🔁➡️🔄

08 July

Next element with greater frequency 📈🧺🧮

09 July

Sum of subarray minimum 🔢➕🔄

10 July

Find the longest string 🔤🔠📝

11 July

Trail of ones ➡️1️⃣🔥

12 July

Gold Mine Problem 🏆💰📚

13 July

Maximum sum of elements not part of LIS 📉📈🔢

14 July

Cutting Binary String 🎯⚡🔪

15 July

Divisible by 13 ➗🔢📍

16 July

Nine Divisors 🔢📐📘

17 July

Power of k in factorial of n 📐♾️📝

18 July

LCM Triplet 🧮📊📐

19 July

Count Unique Vowel Strings 🗣️🔄🔤

20 July

Count Numbers Containing Specific Digits 🔢📍📈

21 July

Count the Coprimes 🧮🟰📈


📂 Solved Questions and Bonus Problems

✨ Previously Solved Questions(Click to expand)

Day

Problem Name

C

C++

Java

Python

Day 1

Second Largest 🔥🥈📈

Day 2

Move All Zeroes to End 🔥➡️⚡

Day 3

Reverse an Array 🌀🔁💻

Day 4

Rotate Array 🔄📚🧑‍💻

Day 5

Next Permutation 🔢➡️🔀

Day 6

Majority Element II 🗳️📊✅

Day 7

Stock Buy and Sell – Multiple Transaction Allowed 💹💼💸

Day 8

Stock Buy and Sell – Max one Transaction Allowed 📈💰🛒

Day 9

Minimize the Heights I 📉🏰🔧

Day 10

Kadane's Algorithm 💡📊🔢

Day 11

Maximum Product Subarray 🔢➗🎯

Day 12

Max Circular Subarray Sum 🔄🎯🌀

Day 13

Smallest Positive Missing Number 🔢❓🔍

Day

Problem Name

C

C++

Java

Python

Day 1

Implement Atoi ⚙️🔑🧑‍🔬

Day 2

Add Binary Strings 🔢➕💻

Day 3

Anagram 🔠💡🤔

Day 4

Non-Repeating Character🔢📝💭

Day 5

Search Pattern (KMP Algorithm) 📚🔍🧠

Day 6

Min Chars to Add for Palindrome ✂️💬🔠

Day 7

Strings Rotations of Each Other 🔄🔠🌀

Day

Problem Name

C

C++

Java

Python

Day 1

Sort 0s, 1s, and 2s 🚦🔢🎨

Day 2

Find H-Index 📚📊🔍

Day 3

Count Inversions 🔄📊🔢

Day 4

Overlapping Intervals 📅⏰🔁

Day 5

Insert Interval 📝🔲⏳

Day 6

Non-overlapping Intervals✂️🔗✅

Day 7

Merge Without Extra Space 📂🚫📦

Day

Problem Name

C

C++

Java

Python

Day 1

Number of occurrence 🧮📂📍

Day 2

Sorted and Rotated Minimum 🔢🔄🌐

Day 3

Search in Rotated Sorted Array 🔍📐🔑

Day 4

Peak element 🌄🔝⛰️

Day 5

K-th element of two Arrays 🔢🔍🎯

Day 6

Aggressive Cows 🐄🚜🐮

Day 7

Allocate Minimum Pages 📚📖📏

Day 8

Kth Missing Positive Number in a Sorted Array 🔢➡️❓

Day

Problem Name

C

C++

Java

Python

Day 1

Spirally traversing a matrix 🌀🔢🔄

Day 2

Rotate by 90 degree 📐↩️🏛️

Day 3

Search in a Row-Column sorted matrix 🔍🔢📉

Day 4

Search in a row-wise sorted matrix 📋🔍✅

Day 5

Search in a sorted Matrix 🔍🧮📈

Day 6

Set Matrix Zeroes 🟦⬜🔢

Day

Problem Name

C

C++

Java

Python

Day 1

Two Sum - Pair with Given Sum ➕🔢🧩

Day 2

Count pairs with given sum 🔢🧮🛠️

Day 3

Find All Triplets with Zero Sum 🔢🔍🎯

Day 4

Intersection of Two arrays with Duplicate Elements 🔄📤📑

Day 5

Union of Arrays with Duplicates 📚📦📑

Day 6

Longest Consecutive Subsequence 🏃‍♂⏳🎯

Day 7

Print Anagrams Together 🔡👥🤝

Day 8

Subarrays with sum K 🔢➕🎯

Day 9

Count Subarrays with given XOR 💻🔢🧮

Day

Problem Name

C

C++

Java

Python

Day 1

Count all triplets with given sum in sorted array 🔢🔽🔍

Day 2

Count Pairs whose sum is less than target 👫🔢👨‍💻

Day 3

Sum Pair closest to target 🎯💡🔢

Day 4

Pair with given sum in a sorted array 🔢🧮✅

Day 5

Count the number of possible triangles 📐📏🧮

Day 6

Indexes of Subarray Sum 📊📐🔍

Day 7

Count distinct elements in every window 🔢🎯📈

Day 8

Longest substring with distinct characters 🧵🔤🧠

Day 9

Trapping Rain Water 🌧️💧🏞️

Day 10

Container With Most Water📦🌊📐

Day

Problem Name

C

C++

Java

Python

Day 1

Equilibrium Point ⚖️🔍🧮

Day 2

Longest Subarray with Sum K 🌟🔍🛠️

Day 3

Largest subarray of 0's and 1's 🔢➕🔴

Day 4

Product array puzzle🧩📦✖

Day

Problem Name

C

C++

Java

Python

Day 1

Reverse a linked list 🔄🔗↔️

Day 2

Rotate a Linked List 🚀🔄💫

Day 3

Merge two sorted linked lists 🔗➕📚

Day 4

Linked List Group Reverse 🔗🔄🌀

Day 5

Add Number Linked Lists ➕🔗🚀

Day 6

Clone List with Next and Random 🔗📋🤔

Day 7

Detect Loop in linked list 🔗🐍🚦

Day 8

Find the first node of loop in linked list 🔗🔁🛑

Day 9

Remove loop in Linked List 🔗🚫📃

Day 10

LRU Cache 🔗📤💾

Day

Problem Name

C

C++

Java

Python

Day 1

Permutations of a String 🔠🔄🧩

Day 2

Implement Pow ⚡🔢🚀

Day 3

N-Queen Problem 👑♟️🔢

Day 4

Solve the Sudoku 🧩📝🎯

Day 5

Word Search📖🔠🔎

Day

Problem Name

C

C++

Java

Python

Day 1

Level order traversal 🌳📤📈

Day 2

Height of Binary Tree 🌲📏🪵

Day 3

Diameter of a Binary Tree 🌳📏🔄

Day 4

Mirror Tree 🌳🪞📌

Day 5

Construct Tree from Inorder & Preorder 🌳🔀📜

Day 6

Inorder Traversal 🌳➡️📄

Day 7

Tree Boundary Traversal 🌳📐🌿

Day 8

Maximum path sum from any node 🌳🛤️🔼

Day 9

K Sum Paths 🌳🛤️🔍

Day 10

Check for BST 🌳✅🔍

Day 11

k-th Smallest in BST 🌳🔢🗂️

Day 12

Pair Sum in BST.md 🌳➕🔢

Day 13

Fixing Two nodes of a BST 🌳🔄🛠️

Day 14

Lowest Common Ancestor in a BST 🌳🔍🤝

Day 15

Serialize and deserialize a binary tree 🌲📤💾

Day

Problem Name

C

C++

Java

Python

Day 1

k largest elements 🔢📈🥇

Day 2

K Closest Points to Origin 📍🗺️🔢

Day 3

Merge K sorted linked lists 🔗📄➡️

Day 4

Find median in a stream 📊⏳📈

Day

Problem Name

C

C++

Java

Python

Day 1

Parenthesis Checker 🏗️✅🗄️

Day 2

Longest valid Parentheses 🟰➡️🎭

Day 3

Next Greater Element ➡️🔝🔍

Day 4

Stock span problem 💹⏳📋

Day 5

Histogram Max Rectangular Area 📦🔲📐

Day 6

Maximum of minimum for every window size 📈🪟📉

Day 7

Get Min from Stack 🔝📦🔽

Day 8

Evaluation of Postfix Expression 📥✖️➗

Day 9

Decode the string 🔍🔠🔓

Day

Problem Name

C

C++

Java

Python

Day 1

K Sized Subarray Maximum 🔢🟩🔄

Day 2

Longest Bounded-Difference Subarray 📏🔢🟰

Day

Problem Name

C

C++

Java

Python

Day 1

Longest Increasing Subsequence 🔝📈🧩

Day 2

Longest String Chain 🔗⛓️🔠

Day 3

Longest Common Subsequence 📏✂️📚

Day 4

Longest Palindromic Subsequence 🔁💫🔬

Day 5

Longest Palindrome in a String 🔠📏🔄

Day 6

Palindrome SubStrings 📜🔄🔢

Day 7

Edit Distance ✂️🧮🔢

Day 8

Ways to Reach the n'th Stair ➡️🏃‍♂️🔢

Day 9

Min Cost Climbing Stairs 🏃‍♂️💰🔝

Day 10

0 - 1 Knapsack Problem 🎒💰🔢

Day 11

Coin Change (Count Ways) 🪙🔢💰

Day 12

Coin Change (Minimum Coins) 🪙📉💰

Day 13

Minimum Jumps 🏃‍♂️💨➡️

Day 14

Subset Sum Problem 🎯🔢✅

Day 15

Partition Equal Subset Sum ➗🔢❌

Day 16

Stock Buy and Sell – Max K Transactions Allowed 💰💵🛒

Day 17

Stock Buy and Sell – Max 2 Transactions Allowed 💰💹💵

Day 18

Stickler Thief 🦹‍♂️🏠🚔

Day 19

Stickler Thief II 🦹‍♂️🏠💰

Day 20

Total Decoding Messages 🔢➡️🔡

Day 21

Matrix Chain Multiplication ➗📈🔢

Day 22

Boolean Parenthesization 🧮✅❌

Day 23

Word Break 📖✂️🚀

Day

Problem Name

C

C++

Java

Python

Day 1

Minimum Platforms 🚉🚆⏳

Day 2

Activity Selection 📅⏳🏆

Day 3

Job Sequencing Problem 📅💼💰

Day 4

Gas Station ⛽🚗💨

Day 5

Maximize partitions in a String 🔠🧩📏

Day

Problem Name

C

C++

Java

Python

Day 1

DFS of Graph 🌐🔍🌲

Day 2

BFS of graph 🌐🚶‍♂️🌲

Day 3

Rotten Oranges 🍊🦠⏳

Day 4

Undirected Graph Cycle ♻️🔍💠

Day 5

Find the number of islands 🏝️🧭⛵

Day 6

Topological sort 📦🕸️🛣️

Day 7

Directed Graph Cycle 🔄🔁🚦

Day 8

Bridge edge in a graph 🌉🕸️🧭

Day 9

Articulation Point - II 🕸️⚙️🗺️

Day 10

Minimum cost to connect all houses in a city 🏘️💰🌆

Day 11

Dijkstra Algorithm 🚦📡🗺️

Day 12

Flood fill Algorithm 🌊🖌️📸

Day 13

Account Merge 👥💼🧾

Day 14

Clone an Undirected Graph 📈👥🧬

Day 15

Alien Dictionary 🪐🌐🦾

Day 16

Bellman-Ford 📉🛣️🚦

Day 17

Floyd Warshall 🌐🔁💥

Day 18

Minimum Weight Cycle 🧮🌐🌀

Day

Problem Name

C

C++

Java

Python

Day 1

Implement Trie 🔠📝🚀

Day 2

Maximum XOR of two numbers in an array ➕➖❌

Day

Problem Name

C

C++

Java

Python

Day 1

Find Only Repetitive Element from 1 to n-1 ➿🔢🧷

Day 2

Missing in Array 🔢🧩🕵️‍♂️

Day 3

Unique Number I 🔢🧠🕵️‍♂️

Day 4

Unique Number II 🔢🕵️‍♂️🧾

🎁 Previously Solved Bonus Problem(Click to expand)

Bonus Problem No.

Problem Name

C 🖥️

C++ 🚀

Java

Python 🐍

NUM 1

Split Array in Three Equal Sum Subarrays 💥📊🔢

NUM 2

Repetitive Addition of Digits 🔢🔄💥

NUM 3

Maximize Number of 1's 🔢🔥💡

NUM 4

Last Moment Before All Ants Fall Out of a Plank 🐜🌍⏳

Bonus Problem No.

Problem Name

C 🖥️

C++ 🚀

Java

Python 🐍

NUM 1

Fizz Buzz 🧮🎉🔢

NUM 2

CamelCase Pattern Matching 🐫🔠💻

NUM 3

Palindrome Sentence 🔄🗣️📜

NUM 4

Minimum repeat to make substring 🔁📏🔤

NUM 5

Longest Prefix Suffix 🔍✂️🔗

NUM 6

Integer to Words 1️⃣🔠📚

Bonus Problem No.

Problem Name

C 🖥️

C++ 🚀

Java

Python 🐍

NUM 1

Minimum sum 💡➕💰

NUM 2

Meeting Rooms 📅🏢⏰

NUM 3

Form the Largest Number 🔢🎯💯

NUM 4

Make array elements unique 🧮🔢🔀

Bonus Problem No.

Problem Name

C 🖥️

C++ 🚀

Java

Python 🐍

NUM 1

Implement Lower Bound 📏🔍📊

NUM 2

Bitonic Point ⛰️🔀📍

NUM 3

Median of 2 Sorted Arrays of Different Sizes 📊🔢⚖️

NUM 4

Square Root 🔢➗🔲

NUM 5

Koko Eating Bananas 🍌🐒⏳

NUM 6

Minimum Days to Make M Bouquets 🌸⏳💐


🚀 Welcome to Our Coding Community! 🚀

🌱 Dive into GeeksforGeeks Problem of the Day Solutions and level up your coding skills!

👥 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.

🌟 Smart AI Resume Analyzer - Final Year Project 🌟

Hello, GeeksforGeeks GitHub community! 🚀

This project is my final year endeavor where I have implemented a basic AI-powered resume analyzer using Streamlit. It's not perfect, but it's a step towards creating a smarter way to evaluate resumes in real-time.

But here's the best part — we need your support to make this tool even smarter and more efficient! 💪 Whether you're contributing new features, fixing bugs, or improving the user experience, your involvement can significantly shape the future of resume analysis.

🔧 How can you contribute?

  • Star the repository to show your support.

  • 📘 Contribute to the project by adding new features(the functionality with your ideas) or fixing issues.

  • 🌍 Spread the word through social media and developer communities.

  • 🔗 Share feedback to make the tool more effective for users!

  • 🐛 Report bugs or suggest improvements to better the project.

Together, let’s create a seamless AI-powered solution for handling resumes. 🚀

Support Smart AI Resume Analyzer & Shape the Future of Technology! 🤖

🚀 Join the Rust Revolution! 🚀

Hello, GeeksforGeeks community! 🌟

Looking to dive into Rust, one of the fastest-growing languages for systems programming? 30 Days of Rust is your perfect starting point! From basics to advanced concepts, this repository is designed to provide you with practical, hands-on learning.

But here's the best part — we need your support to make this resource even bigger and better! 💪 Whether you are a beginner or an experienced developer, your contributions can help grow this community.

🔧 What can you do to help?

  • Star the repository to show your interest.

  • 📚 Contribute to the learning resources or improve existing content.

  • 🌐 Share the project with fellow developers to expand the learning network.

  • 🔗 Spread the word to get more developers involved!

Together, we can empower the next generation of developers and make Rust a language of choice for high-performance applications. 🚀

Support Rust Learning & Contribute to the Future of Programming!

🔥 Master Java with Awesome-Java! 🔥

Hey Developers! 🚀

Are you looking to level up your Java skills? Whether you’re a beginner or an experienced developer, Awesome-Java is packed with useful Java resources, best practices, and hands-on coding exercises.

Why should you explore this repo?

✅ Well-structured Java concepts 🔍 ✅ Covers Core Java, OOP, DSA, Java 8+, Concurrency, and more 🏗️ ✅ Includes real-world projects & solutions 💻 ✅ Beginner-friendly explanations 📘 ✅ Open-source contributions welcome! 🌍

🔧 How can you contribute?

  • Star the repository to show your support!

  • 🛠️ Improve existing code or add new concepts.

  • 💬 Suggest topics that should be covered.

  • 🤝 Join discussions and help others learn Java!

Let’s build an Awesome Java resource together! 🚀

💀 TryHackMe Free Rooms - Learn Ethical Hacking! 💀

Cybersecurity enthusiasts, this one’s for you! 🚀

TryHackMe Free Rooms is a curated list of free hacking labs from TryHackMe that help you build hands-on pentesting, red teaming, and cybersecurity skills.

What’s inside?

🔹 List of completely free hacking labs 🆓 🔹 Topics covering Web Exploitation, Networking, Forensics, Reverse Engineering, and more! 💻 🔹 Beginner-friendly guided walkthroughs 🕵️‍♂️ 🔹 Perfect for CTF practice & OSCP prep 🎯 🔹 Community contributions encouraged! 🤝

🔧 How can you contribute?

  • Star the repository to support ethical hacking education!

  • 📢 Suggest or add new rooms from TryHackMe.

  • 📝 Write walkthroughs for tricky challenges.

  • 🔗 Share this with fellow hackers to grow the community!

Join now & start hacking! 🚀

💡 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

🤝 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! 🌟

👤 Creator

Het Patel Project Maintainer

For any inquiries or feedback, please contact. Happy Contributing❤

Our Contributors

Thank you for contributing to our repository

Contributors

Shaping solutions every day—thanks to everyone contributing to GeeksforGeeks-POTD! 🚀

Star Geographical Distribution

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

See the geographical spread of stars on the map above!

Achievements & Highlights

  • 🌐 Global Reach: Engaging with coders worldwide, from beginners to experts.

  • 🔥 Trending Topics: Problems that sharpen your data structures and algorithms skills.

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!

Last updated