This repository contains solutions to problems from GeeksforGeeks. The files are named using the date and month of the GFG POTD for easy identification and organization.
- Solutions Only: This repository focuses on providing direct solutions without explanations.
- File Naming: Files are named using the Month & Date of the GFG POTD, e.g.,
january13.java
for the "january 13th" problem of the day. And the Topic is mentioned in the commit message. - Language Usage: Solutions are primarily in Java, with potential use of other languages.
(to be updated as new topics are added)
Date | Problem Name | Solution Link | Problem Link |
---|---|---|---|
17-04-2025 | Minimum Weight Cycle | Solution | Problem |
16-04-2025 | Floyd Warshall | Solution | Problem |
15-04-2025 | Bellman-Ford | Solution | Problem |
14-04-2025 | Alien Dictionary | Solution | Problem |
13-04-2025 | Clone an Undirected Graph | Solution | Problem |
12-04-2025 | Flood fill Algorithm | Solution | Problem |
11-04-2025 | Dijkstra Algorithm | Solution | Problem |
10-04-2025 | Minimum cost to connect all houses in a city | Solution | Problem |
09-04-2025 | Articulation Point - II | Solution | Problem |
08-04-2025 | Bridge edge in a graph | Solution | Problem |
07-04-2025 | Directed Graph Cycle | Solution | Problem |
06-04-2025 | Topological sort | Solution | Problem |
05-04-2025 | Find the number of islands | Solution | Problem |
04-04-2025 | Undirected Graph Cycle | Solution | Problem |
03-04-2025 | Rotten Oranges | Solution | Problem |
02-04-2025 | BFS of graph | Solution | Problem |
01-04-2025 | DFS of Graph | Solution | Problem |
31-03-2025 | Maximize partitions in a String | Solution | Problem |
30-03-2025 | Gas Station | Solution | Problem |
29-03-2025 | Job Sequencing Problem | Solution | Problem |
28-03-2025 | Activity Selection | Solution | Problem |
27-03-2025 | Minimum Platforms | Solution | Problem |
26-03-2025 | Word Break | Solution | Problem |
25-03-2025 | Boolean Parenthesization | Solution | Problem |
24-03-2025 | Matrix Chain Multiplication | Solution | Problem |
23-03-2025 | Total Decoding Messages | Solution | Problem |
22-03-2025 | Stickler Thief II | Solution | Problem |
21-03-2025 | Stickler Thief | Solution | Problem |
20-03-2025 | Stock Buy and Sell – Max 2 Transactions Allowed | Solution | Problem |
19-03-2025 | Stock Buy and Sell – Max K Transactions Allowed | Solution | Problem |
18-03-2025 | Partition Equal Subset Sum | Solution | Problem |
17-03-2025 | Subset Sum Problem | Solution | Problem |
16-03-2025 | Minimum Jumps | Solution | Problem |
15-03-2025 | Coin Change (Minimum Coins) | Solution | Problem |
14-03-2025 | Coin Change (Count Ways) | Solution | Problem |
13-03-2025 | 0 - 1 Knapsack Problem | Solution | Problem |
12-03-2025 | Min Cost Climbing Stairs | Solution | Problem |
11-03-2025 | Ways to Reach the n'th Stair | Solution | Problem |
10-03-2025 | Edit Distance | Solution | Problem |
09-03-2025 | Palindrome SubStrings | Solution | Problem |
08-03-2025 | Longest Palindrome in a String | Solution | Problem |
07-03-2025 | Longest Palindromic Subsequence | Solution | Problem |
06-03-2025 | Longest Common Subsequence | Solution | Problem |
05-03-2025 | Longest String Chain | Solution | Problem |
04-03-2025 | Longest Increasing Subsequence | Solution | Problem |
03-03-2025 | Longest Bounded-Difference Subarray | Solution | Problem |
02-03-2025 | K Sized Subarray Maximum | Solution | Problem |
01-03-2025 | Decode the string | Solution | Problem |
28-02-2025 | Evaluation of Postfix Expression | Solution | Problem |
27-02-2025 | Get Min from Stack | Solution | Problem |
26-02-2025 | Maximum of minimum for every window size | Solution | Problem |
25-02-2025 | Histogram Max Rectangular Area | Solution | Problem |
24-02-2025 | Stock span problem | Solution | Problem |
23-02-2025 | Next Greater Element | Solution | Problem |
22-02-2025 | Longest valid Parentheses | Solution | Problem |
21-02-2025 | Parenthesis Checker | Solution | Problem |
20-02-2025 | Find median in a stream | Solution | Problem |
19-02-2025 | Merge K sorted linked lists | Solution | Problem |
18-02-2025 | K Closest Points to Origin | Solution | Problem |
17-02-2025 | k largest elements | Solution | Problem |
16-02-2025 | Serialize and deserialize a binary tree | Solution | Problem |
15-02-2025 | Lowest Common Ancestor in a BST | Solution | Problem |
14-02-2025 | Fixing Two nodes of a BST | Solution | Problem |
13-02-2025 | Pair Sum in BST | Solution | Problem |
12-02-2025 | k-th Smallest in BST | Solution | Problem |
11-02-2025 | Check for BST | Solution | Problem |
10-02-2025 | K Sum Paths | Solution | Problem |
09-02-2025 | Maximum path sum from any node | Solution | Problem |
08-02-2025 | Tree Boundary Traversal | Solution | Problem |
07-02-2025 | Inorder Traversal | Solution | Problem |
06-02-2025 | Construct Tree from Inorder & Preorder | Solution | Problem |
05-02-2025 | Mirror Tree | Solution | Problem |
04-02-2025 | Diameter of a Binary Tree | Solution | Problem |
03-02-2025 | Height of Binary Tree | Solution | Problem |
02-02-2025 | Level order traversal | Solution | Problem |
01-02-2025 | Word Search | Solution | Problem |
31-01-2025 | Solve the Sudoku | Solution | Problem |
30-01-2025 | N-Queen Problem | Solution | Problem |
29-01-2025 | Implement Pow | Solution | Problem |
28-01-2025 | Permutations of a String | Solution | Problem |
27-01-2025 | LRU Cache | Solution | Problem |
26-01-2025 | Remove loop in Linked List | Solution | Problem |
25-01-2025 | Find the first node of loop in linked list | Solution | Problem |
24-01-2025 | Detect Loop in linked list | Solution | problem |
23-01-2025 | Clone List with Next and Random | Solution | problem |
22-01-2025 | Add Number Linked Lists | Solution | problem |
21-01-2025 | Linked List Group Reverse | Solution | problem |
20-01-2025 | Merge two sorted linked lists | Solution | problem |
19-01-2025 | Rotate a Linked List | Solution | problem |
18-01-2025 | Reverse a linked list | Solution | problem |
17-01-2025 | Product array puzzle | Solution | problem |
16-01-2025 | Largest subarray of 0's and 1's | Solution | problem |
15-01-2025 | Longest Subarray with Sum K | Solution | problem |
14-01-2025 | Equilibrium Point | Solution | problem |
13-01-2025 | Container With Most Water | Solution | problem |
12-01-2025 | Trapping Rain Water | Solution | problem |
11-01-2025 | Longest substring with distinct characters | Solution | problem |
10-01-2025 | Count distinct elements in every window | Solution | problem |
09-01-2025 | Indexes of Subarray Sum | Solution | problem |
08-01-2025 | Count the number of possible triangles | Solution | problem |
07-01-2025 | Pair with given sum in a sorted array | Solution | problem |
06-01-2025 | Sum Pair closest to target | Solution | problem |
05-01-2025 | Count Pairs whose sum is less than target | Solution | problem |
04-01-2025 | Count all triplets with given sum in sorted array | Solution | problem |
03-01-2025 | Count Subarrays with given XOR | Solution | problem |
02-01-2025 | Subarrays with sum K | Solution | problem |
01-01-2025 | Print Anagrams Together | Solution | problem |
If you find this repo useful, please consider giving it a star ⭐. It helps others discover it too!