https://github.com/va-run23/geeksforgeeks-potd
Namaste, Welcome to the GeeksforGeeks-POTD repository! 🎉 This repository contains C++ solutions to GeeksforGeeks' "Problem of the Day" (POTD). It's a valuable resource for practicing and improving your problem-solving skills in C++, covering a wide range of topics and difficulty levels.
https://github.com/va-run23/geeksforgeeks-potd
arrays coding-challenge competitive-coding competitive-programming data-structures-and-algorithms dsa dsa-practice geeksforgeeks geeksforgeeks-cpp geeksforgeeks-dsa geeksforgeeks-practice geeksforgeeks-practice-solutions geeksforgeeks-solutions linked-list matrix potd-gfg potd-github potd-practice potd-solution vectors
Last synced: 18 days ago
JSON representation
Namaste, Welcome to the GeeksforGeeks-POTD repository! 🎉 This repository contains C++ solutions to GeeksforGeeks' "Problem of the Day" (POTD). It's a valuable resource for practicing and improving your problem-solving skills in C++, covering a wide range of topics and difficulty levels.
- Host: GitHub
- URL: https://github.com/va-run23/geeksforgeeks-potd
- Owner: VA-run23
- License: mit
- Created: 2025-01-05T07:57:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-18T14:33:04.000Z (11 months ago)
- Last Synced: 2025-08-18T16:23:19.953Z (11 months ago)
- Topics: arrays, coding-challenge, competitive-coding, competitive-programming, data-structures-and-algorithms, dsa, dsa-practice, geeksforgeeks, geeksforgeeks-cpp, geeksforgeeks-dsa, geeksforgeeks-practice, geeksforgeeks-practice-solutions, geeksforgeeks-solutions, linked-list, matrix, potd-gfg, potd-github, potd-practice, potd-solution, vectors
- Language: C++
- Homepage: https://github.com/VA-run23/GFG-POTD
- Size: 252 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GFG Problem of the Day — C++ Solutions (2025 & 2026)
A daily-committed, chronologically organized archive of C++ solutions to the [GeeksforGeeks Problem of the Day](https://www.geeksforgeeks.org/problem-of-the-day). Every solution represents a real submission on the day of its commit: no backdating, no skips, no filler.
---
## Repository Structure
```
GFG_POTD/
│
├── 2025_CPP_SOLUTIONS_POTD/
│ ├── 01_Jan_2025/
│ ├── 02_Feb_2025/
│ ├── 03_Mar_2025/
│ ├── 04_Apr_2025/
│ ├── 05_May_2025/
│ ├── 06_Jun_2025/
│ ├── 07_Jul_2025/
│ ├── 08_Aug_2025/
│ ├── 09_Sep_2025/
│ ├── 10_Oct_2025/
│ ├── 11_Nov_2025/
│ └── 12_Dec_2025/
│
└── 2026_CPP_SOLUTIONS_POTD/
├── 01_Jan_2026/
├── 02_Feb_2026/
├── 03_Mar_2026/
├── 04_Apr_2026/
└── 05_May_2026/
...
```
Solutions are organized **year-wise, then month-wise**. Each file is named `POTD_DD_MM_YYYY.cpp` and committed on the day it was solved, with the commit timestamp reflecting the actual solve time in IST.
---
## How to Use This Repository
If you are stuck on a GFG POTD, here is the recommended way to use this archive:
1. Navigate to the folder for the relevant year and month
2. Open the `.cpp` file for the date you need
3. Read the solution, understand the approach, then close it and try it yourself
Every file follows the same structure: includes, class or function definition, and a clean implementation. No bloated boilerplate, no copied editorial text, just the working solution.
---
## What This Repository Covers
**Data Structures**
- Arrays, strings, linked lists, stacks, queues
- Binary trees, BSTs, heaps, tries
- Graphs: adjacency list and matrix representations
- Segment trees, sparse tables, disjoint set union
**Algorithms**
- Dynamic programming: memoization and tabulation
- Greedy approaches, divide and conquer
- Graph traversal: BFS, DFS, Dijkstra, Floyd-Warshall
- Backtracking, bit manipulation, two pointers, sliding window
**Difficulty Range:** Easy through Hard, as set by GFG daily.
---
## Consistency Record
This repository is part of an unbroken daily coding habit maintained across GitHub, LeetCode, and GeeksforGeeks.
| Metric | Value |
| --- | --- |
| Current streak | 503+ consecutive days |
| Solutions committed | 500+ |
| Language | C++ throughout |
| Commit policy | One solution per day, committed on the day itself |
The commit history of this repository reflects real daily effort. Each timestamp is the actual time the solution was written and pushed.
---
## About the Git History
The git history of the 2026 folder was rewritten once, in May 2026. This was not to alter content or fake timestamps: the solutions, the dates, and the commit messages are all accurate. The rewrite was necessary to correct a naming convention error (`POTD_DD_MM_2025.cpp` instead of `POTD_DD_MM_2026.cpp`) that went unnoticed across 132 consecutive commits, discovered only when an unrelated git misconfiguration caused two days to disappear from the contribution graph.
The full story, including how the bug was found, how the files were lost and recovered, and what was learned from it, is documented openly:
> **[132 Days of a Silent Bug, One Night of Recovery](https://vskript.netlify.app/post/29)**
> *An honest account of the naming bug, the file deletion, the VS Code history recovery, and the git history rewrite that brought 503 days of streak back from nothing.*
If you noticed unusual commit SHAs or a rewritten history in the 2026 folder, that post explains exactly what happened and why.
---
## Connect
| Platform | Link |
| --- | --- |
| GitHub | [VA-run23](https://github.com/VA-run23) |
| Blog | [VSKript](https://vskript.netlify.app) |
| GFG Profile | [GeeksforGeeks](https://www.geeksforgeeks.org/profile/neurovarun23) |
---
*Solved daily. Committed honestly. Documented openly.*