If you find this repository useful, please give it a star! It helps others discover it too! ⭐
This repository contains daily solutions to the GeeksforGeeks Problem of the Day (POTD). Each solution is added with consistency in naming, language usage, and commit conventions to help track and revisit problems easily.
- Solutions Only: No explanations or extra commentary, straightforward code.
- File Naming Convention: Files are named using the month and date, e.g.,
january13.java
corresponds to January 13th. - Commit Messages: Include the problem topic for easier identification.
- Primary Language: Java (some solutions may appear in other languages in the future).
✨ This table will continue to grow daily with fresh solutions.
Date | Question | Difficulty | Problem Link | Solution Link |
---|---|---|---|---|
07-08-2025 | Difference Check | Medium | Problem | Solution |
06-08-2025 | Roman Number to Integer | Easy | Problem | Solution |
05-08-2025 | Palindrome Sentence | Easy | Problem | Solution |
04-08-2025 | Maximum sum Rectangle | Hard | Problem | Solution |
03-08-2025 | 2D Difference Array | Medium | Problem | Solution |
02-08-2025 | Longest Subarray with Majority Greater than K | Medium | Problem | Solution |
01-08-2025 | Balancing Consonants and Vowels Ratio | Medium | Problem | Solution |
04-07-2025 | Subarrays With At Most K Distinct Integers | Medium | Problem | Solution |
03-07-2025 | Longest Substring with K Uniques | Medium | Problem | Solution |
02-07-2025 | Longest subarray with Atmost two distinct integers | Medium | Problem | Solution |
01-07-2025 | Substrings of length k with k-1 distinct elements | Medium | Problem | Solution |
30-06-2025 | Max min Height | Hard | Problem | Solution |
29-06-2025 | Split Array Largest Sum | Hard | Problem | Solution |
28-06-2025 | Counting elements in two arrays | Medium | Problem | Solution |
27-06-2025 | Mobile numeric keypad | Medium | Problem | Solution |
26-06-2025 | Game with String | Medium | Problem | Solution |
25-06-2025 | Check if frequencies can be equal | Medium | Problem | Solution |
24-06-2025 | Lexicographically Largest String After K Deletions | Medium | Problem | Solution |
23-06-2025 | Minimum sum | Medium | Problem | Solution |
22-06-2025 | Largest Divisible Subset | Medium | Problem | Solution |
21-06-2025 | Police and Thieves | Medium | Problem | Solution |
20-06-2025 | Group Balls by Sequence | Medium | Problem | Solution |
19-06-2025 | Case-specific Sorting of Strings | Medium | Problem | Solution |
18-06-2025 | All Palindromic Partitions | Medium | Problem | Solution |
17-06-2025 | Coin Piles | Medium | Problem | Solution |
16-06-2025 | Equalize the Towers | Medium | Problem | Solution |
15-06-2025 | Smallest Divisor | Medium | Problem | Solution |
14-06-2025 | Symmetric Tree | Easy | Problem | Solution |
13-06-2025 | Koko Eating Bananas | Medium | Problem | Solution |
12-06-2025 | K closest elements | Medium | Problem | Solution |
11-06-2025 | Remove the balls | Medium | Problem | Solution |
10-06-2025 | Exactly one swap | Medium | Problem | Solution |
09-06-2025 | BST with Dead End | Medium | Problem | Solution |
08-06-2025 | Sum-string | Hard | Problem | Solution |
07-06-2025 | Longest Span in two Binary Arrays | Medium | Problem | Solution |
06-06-2025 | Search Pattern (Rabin-Karp Algorithm) | Medium | Problem | Solution |
05-06-2025 | Count the paths | Medium | Problem | Solution |
04-06-2025 | LCS of three strings | Medium | Problem | Solution |
03-06-2025 | Substrings with K Distinct | Medium | Problem | Solution |
02-06-2025 | Unique Paths in a Grid | Medium | Problem | Solution |
01-06-2025 | Count pairs Sum in matrices | Easy | Problem | Solution |
31-05-2025 | Kth element in Matrix | Medium | Problem | Solution |
30-05-2025 | Closest Neighbour in BST | Easy | Problem | Solution |
29-05-2025 | Sum of nodes on the longest path | Medium | Problem | Solution |
28-05-2025 | Find rectangle with corners as 1 | Medium | Problem | Solution |
27-05-2025 | Print leaf nodes from preorder traversal of BST | Medium | Problem | Solution |
26-05-2025 | Insert in Sorted Circular Linked List | Medium | Problem | Solution |
25-05-2025 | Pythagorean Triplet | Medium | Problem | Solution |
24-05-2025 | Sum of all substrings of a number | Medium | Problem | Solution |
23-05-2025 | Dice throw | Medium | Problem | Solution |
22-05-2025 | Minimum Deletions | Medium | Problem | Solution |
21-05-2025 | Kth Smallest Number in Multiplication Table | Hard | Problem | Solution |
20-05-2025 | Burning Tree | Hard | Problem | Solution |
19-05-2025 | Predecessor and Successor | Medium | Problem | Solution |
18-05-2025 | Level Order in spiral form | Easy | Problem | Solution |
17-05-2025 | Sort the given array after applying the given equation | Medium | Problem | Solution |
16-05-2025 | Smallest range in K lists | Hard | Problem | Solution |
15-05-2025 | Substrings with same first and last characters | Easy | Problem | Solution |
14-05-2025 | Look and Say Pattern | Medium | Problem | Solution |
13-05-2025 | nCr | Medium | Problem | Solution |
12-05-2025 | Meeting Rooms III | Hard | Problem | Solution |
11-05-2025 | K-th Largest Sum Contiguous Subarray | Medium | Problem | Solution |
10-05-2025 | Longest Subarray with Majority Greater than K | Medium | Problem | Solution |
09-05-2025 | Largest number in K swaps | Medium | Problem | Solution |
08-05-2025 | Missing element of AP | Medium | Problem | Solution |
07-05-2025 | Root to Leaf Paths | Medium | Problem | Solution |
06-05-2025 | Left View of Binary Tree | Easy | Problem | Solution |
05-05-2025 | Search in an almost Sorted Array | Medium | Problem | Solution |
04-05-2025 | Smallest distinct window | Medium | Problem | Solution |
03-05-2025 | Prime List | Medium | Problem | Solution |
02-05-2025 | Bitonic Point | Easy | Problem | Solution |
01-05-2025 | Pascal Triangle | Medium | Problem | Solution |
30-04-2025 | Find length of Loop | Easy | Problem | Solution |
29-04-2025 | Sort a linked list of 0s, 1s and 2s | Medium | Problem | Solution |
28-04-2025 | Maximum sum of Non-adjacent nodes | Medium | Problem | Solution |
27-04-2025 | Multiply two strings | Medium | Problem | Solution |
26-04-2025 | Is Binary Tree Heap | Medium | Problem | Solution |
25-04-2025 | Majority Element | Medium | Problem | Solution |
24-04-2025 | Unique Number III | Medium | Problem | Solution |
23-04-2025 | Unique Number II | Medium | Problem | Solution |
22-04-2025 | Unique Number I | Easy | Problem | Solution |
21-04-2025 | Missing in Array | Easy | Problem | Solution |
20-04-2025 | Find Only Repetitive Element from 1 to n-1 | Easy | Problem | Solution |
19-04-2025 | Maximum XOR of two numbers in an array | Medium | Problem | Solution |
18-04-2025 | Implement Trie | Medium | Problem | Solution |
17-04-2025 | Minimum Weight Cycle | Hard | Problem | Solution |
16-04-2025 | Floyd Warshall | Medium | Problem | Solution |
15-04-2025 | Bellman-Ford | Medium | Problem | Solution |
14-04-2025 | Alien Dictionary | Hard | Problem | Solution |
13-04-2025 | Clone an Undirected Graph | Medium | Problem | Solution |
12-04-2025 | Flood fill Algorithm | Medium | Problem | Solution |
11-04-2025 | Dijkstra Algorithm | Medium | Problem | Solution |
10-04-2025 | Minimum cost to connect all houses in a city | Medium | Problem | Solution |
09-04-2025 | Articulation Point - II | Hard | Problem | Solution |
08-04-2025 | Bridge edge in a graph | Medium | Problem | Solution |
07-04-2025 | Directed Graph Cycle | Medium | Problem | Solution |
06-04-2025 | Topological sort | Medium | Problem | Solution |
05-04-2025 | Find the number of islands | Medium | Problem | Solution |
04-04-2025 | Undirected Graph Cycle | Medium | Problem | Solution |
03-04-2025 | Rotten Oranges | Medium | Problem | Solution |
02-04-2025 | BFS of graph | Easy | Problem | Solution |
01-04-2025 | DFS of Graph | Easy | Problem | Solution |
31-03-2025 | Maximize partitions in a String | Easy | Problem | Solution |
30-03-2025 | Gas Station | Medium | Problem | Solution |
29-03-2025 | Job Sequencing Problem | Medium | Problem | Solution |
28-03-2025 | Activity Selection | Medium | Problem | Solution |
27-03-2025 | Minimum Platforms | Medium | Problem | Solution |
26-03-2025 | Word Break | Medium | Problem | Solution |
25-03-2025 | Boolean Parenthesization | Hard | Problem | Solution |
24-03-2025 | Matrix Chain Multiplication | Hard | Problem | Solution |
23-03-2025 | Total Decoding Messages | Medium | Problem | Solution |
22-03-2025 | Stickler Thief II | Medium | Problem | Solution |
21-03-2025 | Stickler Thief | Medium | Problem | Solution |
20-03-2025 | Stock Buy and Sell – Max 2 Transactions Allowed | Hard | Problem | Solution |
19-03-2025 | Stock Buy and Sell – Max K Transactions Allowed | Hard | Problem | Solution |
18-03-2025 | Partition Equal Subset Sum | Medium | Problem | Solution |
17-03-2025 | Subset Sum Problem | Medium | Problem | Solution |
16-03-2025 | Minimum Jumps | Medium | Problem | Solution |
15-03-2025 | Coin Change (Minimum Coins) | Medium | Problem | Solution |
14-03-2025 | Coin Change (Count Ways) | Medium | Problem | Solution |
13-03-2025 | 0 - 1 Knapsack Problem | Medium | Problem | Solution |
12-03-2025 | Min Cost Climbing Stairs | Medium | Problem | Solution |
11-03-2025 | Ways to Reach the n'th Stair | Medium | Problem | Solution |
10-03-2025 | Edit Distance | Hard | Problem | Solution |
09-03-2025 | Palindrome SubStrings | Medium | Problem | Solution |
08-03-2025 | Longest Palindrome in a String | Medium | Problem | Solution |
07-03-2025 | Longest Palindromic Subsequence | Medium | Problem | Solution |
06-03-2025 | Longest Common Subsequence | Medium | Problem | Solution |
05-03-2025 | Longest String Chain | Medium | Problem | Solution |
04-03-2025 | Longest Increasing Subsequence | Medium | Problem | Solution |
03-03-2025 | Longest Bounded-Difference Subarray | Medium | Problem | Solution |
02-03-2025 | K Sized Subarray Maximum | Medium | Problem | Solution |
01-03-2025 | Decode the string | Medium | Problem | Solution |
28-02-2025 | Evaluation of Postfix Expression | Medium | Problem | Solution |
27-02-2025 | Get Min from Stack | Medium | Problem | Solution |
26-02-2025 | Maximum of minimum for every window size | Hard | Problem | Solution |
25-02-2025 | Histogram Max Rectangular Area | Hard | Problem | Solution |
24-02-2025 | Stock span problem | Medium | Problem | Solution |
23-02-2025 | Next Greater Element | Medium | Problem | Solution |
22-02-2025 | Longest valid Parentheses | Hard | Problem | Solution |
21-02-2025 | Parenthesis Checker | Easy | Problem | Solution |
20-02-2025 | Find median in a stream | Hard | Problem | Solution |
19-02-2025 | Merge K sorted linked lists | Medium | Problem | Solution |
18-02-2025 | K Closest Points to Origin | Medium | Problem | Solution |
17-02-2025 | k largest elements | Medium | Problem | Solution |
16-02-2025 | Serialize and deserialize a binary tree | Medium | Problem | Solution |
15-02-2025 | Lowest Common Ancestor in a BST | Easy | Problem | Solution |
14-02-2025 | Fixing Two nodes of a BST | Hard | Problem | Solution |
13-02-2025 | Pair Sum in BST | Medium | Problem | Solution |
12-02-2025 | k-th Smallest in BST | Medium | Problem | Solution |
11-02-2025 | Check for BST | Easy | Problem | Solution |
10-02-2025 | K Sum Paths | Medium | Problem | Solution |
09-02-2025 | Maximum path sum from any node | Medium | Problem | Solution |
08-02-2025 | Tree Boundary Traversal | Medium | Problem | Solution |
07-02-2025 | Inorder Traversal | Easy | Problem | Solution |
06-02-2025 | Construct Tree from Inorder & Preorder | Medium | Problem | Solution |
05-02-2025 | Mirror Tree | Easy | Problem | Solution |
04-02-2025 | Diameter of a Binary Tree | Medium | Problem | Solution |
03-02-2025 | Height of Binary Tree | Easy | Problem | Solution |
02-02-2025 | Level order traversal | Easy | Problem | Solution |
01-02-2025 | Word Search | Medium | Problem | Solution |
31-01-2025 | Solve the Sudoku | Hard | Problem | Solution |
30-01-2025 | N-Queen Problem | Hard | Problem | Solution |
29-01-2025 | Implement Pow | Medium | Problem | Solution |
28-01-2025 | Permutations of a String | Medium | Problem | Solution |
27-01-2025 | LRU Cache | Hard | Problem | Solution |
26-01-2025 | Remove loop in Linked List | Medium | Problem | Solution |
25-01-2025 | Find the first node of loop in linked list | Easy | Problem | Solution |
24-01-2025 | Detect Loop in linked list | Medium | problem | Solution |
23-01-2025 | Clone List with Next and Random | Hard | problem | Solution |
22-01-2025 | Add Number Linked Lists | Medium | problem | Solution |
21-01-2025 | Linked List Group Reverse | Hard | problem | Solution |
20-01-2025 | Merge two sorted linked lists | Medium | problem | Solution |
19-01-2025 | Rotate a Linked List | Medium | problem | Solution |
18-01-2025 | Reverse a linked list | Easy | problem | Solution |
17-01-2025 | Product array puzzle | Easy | problem | Solution |
16-01-2025 | Largest subarray of 0's and 1's | Easy | problem | Solution |
15-01-2025 | Longest Subarray with Sum K | Medium | problem | Solution |
14-01-2025 | Equilibrium Point | Easy | problem | Solution |
13-01-2025 | Container With Most Water | Medium | problem | Solution |
12-01-2025 | Trapping Rain Water | Hard | problem | Solution |
11-01-2025 | Longest substring with distinct characters | Medium | problem | Solution |
10-01-2025 | Count distinct elements in every window | Medium | problem | Solution |
09-01-2025 | Indexes of Subarray Sum | Medium | problem | Solution |
08-01-2025 | Count the number of possible triangles | Medium | problem | Solution |
07-01-2025 | Pair with given sum in a sorted array | Easy | problem | Solution |
06-01-2025 | Sum Pair closest to target | Easy | problem | Solution |
05-01-2025 | Count Pairs whose sum is less than target | Easy | problem | Solution |
04-01-2025 | Count all triplets with given sum in sorted array | Medium | problem | Solution |
03-01-2025 | Count Subarrays with given XOR | Medium | problem | Solution |
02-01-2025 | Subarrays with sum K | Medium | problem | Solution |
01-01-2025 | Print Anagrams Together | Medium | problem | Solution |
This project is licensed under the MIT License.
This repository is for educational use only and adheres to fair use for coding practice and learning purposes.
If you found this helpful, don’t forget to ⭐ star the repo!