Skip to content

Latest commit

 

History

History
187 lines (146 loc) · 21.2 KB

README.md

File metadata and controls

187 lines (146 loc) · 21.2 KB

📜 Table of Contents 📜

For discussions, questions, or doubts related to this solution, please visit my Twitter : Any Questions. Thank you for your input, together, we strive to create a space where learning is a collaborative endeavor.

🔮Your feedback is valuable! Please consider leaving a 🌟 star 🌟 and sharing your thoughts in the comments.

Introduction 🙂

This repository contains solutions to daily problems from GeeksforGeeks. Each day, a new problem is provided along with its solution.

📅 January 2025 Problem of the Day Solutions 📅

January Problem Name Java
Day 01 Print Anagrams Together 💥🔢 Solution
Day 02 Subarrays with sum K 📊🔢 Solution
Day 03 Count Subarrays with given XOR 🔢🌟 Solution
Day 04 Count all triplets with given sum in sorted array 🧩📃 Solution
Day 05 Count Pairs whose sum is less than target 📏📐 Solution
Day 06 Sum Pair closest to target 💥📊🔢 Solution
Day 07 Pair with given sum in a sorted array 💥📊🔢 Solution
Day 08 Count the number of possible triangles 🔢🌟 Solution
Day 09 Indexes of Subarray Sum 🧩📃 Solution
Day 10 Count distinct elements in every window 📏📐 Solution
Day 11 Longest substring with distinct characters 💥📊🔢 Solution
Day 12 Trapping Rain Water 💥📊🔢 Solution

🎉 Bonus Problems (Arrays)🎁

Bonus Problem No. Problem Name Java
NUM 1 Split Array in Three Equal Sum Subarrays 💥 Solution
NUM 2 Repetitive Addition of Digits 🔢🔄 Solution
NUM 3 Maximize Number of 1's 🔢💡 Solution
NUM 4 Last Moment Before All Ants Fall Out of a Plank 🐜🌍 Solution

🎉 Bonus Problems (Strings)🎁

Bonus Problem No. Problem Name Java
NUM 1 Fizz Buzz 💥🔢 Solution
NUM 2 CamelCase Pattern Matching 🚀🟰 Solution
NUM 3 Palindrome Sentence ✅👑 Solution
NUM 4 Minimum repeat to make substring 🚀✅ Solution
NUM 5 Longest Prefix Suffix 🔢🟰 Solution
NUM 6 Integer to Words 💥🚀 Solution

📏 Bonus Problems (Sorting)📐

Bonus Problem No. Problem Name Java
NUM 1 Minimum sum ➕📊 Solution
NUM 2 Meeting Rooms 🏢📅 Solution
NUM 3 From the Largest Number 🔢🏆 Solution
NUM 4 Make array elements unique 🎲🔧 Solution

🎉 Bonus Problems (Searching)🎁

Bonus Problem No. Problem Name Java
NUM 1 Implement Lower Bound 💥🔢 Solution
NUM 2 Bitonic Point 🚀🟰 Solution
NUM 3 Median of 2 Sorted Arrays of Different Sizes ✅👑 Solution
NUM 4 Square Root 🚀✅ Solution
NUM 5 Koko Eating Bananas 🔢🟰 Solution
NUM 6 Minimum days to make M bouquets 💥🚀 Solution

🎉 Bonus Problems (Matrix)🎁

Bonus Problem No. Problem Name Java
NUM 1 Rotate a Matrix by 180 Counterclockwise 💥🔢 Solution
NUM 2 Create a spiral matrix of N*M size from given array 🚀🟰 Solution
NUM 3 Generate a matrix with each row and column of given sum ✅👑 Solution
NUM 4 Make Matrix Beautiful 🚀✅ Solution

🎉 Bonus Problems (Hashing)🎁

Bonus Problem No. Problem Name Java
NUM 1 Roman Number to Integer 💥🔢 Solution
NUM 2 Max distance between same elements 🚀🟰 Solution
NUM 3 Pairs with difference k ✅👑 Solution
NUM 4 4 Sum – Count quadruplets with given sum 🚀✅ Solution
NUM 5 Min Subsets with Consecutive Numbers 🔢🟰 Solution
NUM 6 Group Shifted String 💥🚀 Solution

🎉 Bonus Problems (Two Pointer Technique)🎁

Bonus Problem No. Problem Name Java
NUM 1 Triplet Sum in Array 💥🔢 Solution
NUM 2 3 Sum Closest 🚀🟰 Solution

🎉 160 Days of GFG Challenge 🎁


Here's the updated list with the problem days properly formatted in the solution folder:

Day Problem Name Java ☕
Day 1 Second Largest 🔢🏅 Solution
Day 2 Move All Zeroes to End 🔄0️⃣ Solution
Day 3 Reverse an Array 🔄🔁 Solution
Day 4 Rotate Array 🔄🔄 Solution
Day 5 Next Permutation 🔢🔄 Solution
Day 6 Majority Element II 🔢👥 Solution
Day 7 Stock Buy and Sell – Multiple Transactions Allowed 📈💹 Solution
Day 8 Stock Buy and Sell – Max One Transaction Allowed 📉💵 Solution
Day 9 Minimize the Heights II ⬆️⬇️ Solution
Day 10 Kadane's Algorithm 💡📊 Solution
Day 11 Maximum Product Subarray 🔢💥 Solution
Day 12 Max Circular Subarray Sum 🔁💯 Solution
Day 13 Smallest Positive Missing Number 🔢❓ Solution
Day 14 Implement Atoi 🔢💻 Solution
Day 15 Add Binary Strings 0️⃣1️⃣➕ Solution
Day 16 Anagram 🔄✏️ Solution
Day 17 Non Repeating Character 🔠❌ Solution
Day 18 Search Pattern (KMP Algorithm) 🔍📜 Solution
Day 19 Min Chars to Add for Palindrome 🔍📕 Solution
Day 20 Strings Rotations of Each Other 🔍📃 Solution
Day 21 Sort 0s, 1s and 2s 📃📏 Solution
Day 22 Find H-Index 🔏🔍 Solution
Day 23 Count Inversions 😀 🧡 Solution
Day 24 Overlapping Intervals 🔩⚙️ Solution
Day 25 Insert Interval🌸 💎 Solution
Day 26 Non-overlapping Intervals📏📐 Solution
Day 27 Merge Without Extra Space🩹⛓️ Solution
Day 28 Number of occurrence🧾🏷️ Solution
Day 29 Sorted and Rotated Minimum❤️ 🌺 Solution
Day 30 Search in Rotated Sorted Array🔮 😃 Solution
Day 31 Peak element💎 🧡 Solution
Day 32 K-th element of two Arrays⭐💫 Solution
Day 33 Aggressive Cows🔥☘️ Solution
Day 34 Allocate Minimum Pages📄📄 Solution
Day 35 Kth Missing Positive Number in a Sorted Array📜🔢 Solution
Day 36 Spirally traversing a matrix🎯🔢 Solution
Day 37 Rotate by 90 degree🏨🏢 Solution
Day 38 Search in a Row-Column sorted matrix🎯🔢 Solution
Day 39 Search in a row-wise sorted matrix✅🕖 Solution
Day 40 Search in a sorted matrix🛠️📑 Solution
Day 41 Set matrix Zeroes📄📨 Solution
Day 42 Two Sum -Pair with Given Sum🏅📦 Solution
Day 43 Count pairs with given sum 🔢🧮 Solution
Day 44 Find All Triplets with Zero Sum📝🖊️ Solution
Day 45 Intersection of Two arrays with Dublicate Elements📕✏️ Solution
Day 46 Union of Arrays with Duplicates📚📦 Solution
Day 47 Longest Consecutive Subsequence➕🗯️ Solution
Day 48 Print Anagrams Together🧩🎯 Solution
Day 49 Subarrays with sum K🛠️📑 Solution
Day 50 Count Subarrays with given XOR🖊️📝 Solution
Day 51 Count all triplets with given sum in sorted array🧩📃 Solution
Day 52 Count Pairs whose sum is less than target📏📐 Solution
Day 53 Sum Pair closest to target📚✏️ Solution
Day 54 Pair with given sum in a sorted array📕🖊️ Solution
Day 55 Count the number of possible triangles📑✒️ Solution
Day 56 Indexes of Subarray Sum📘📝 Solution
Day 57 Count distinct elements in every window📏📚 Solution
Day 58 Longest substring with distinct characters📙🖋️ Solution
Day 59 Trapping Rain Water📑✒️ Solution