A daily-committed, chronologically organized archive of C++ solutions to the GeeksforGeeks Problem of the Day. Every solution represents a real submission on the day of its commit: no backdating, no skips, no filler.
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.
If you are stuck on a GFG POTD, here is the recommended way to use this archive:
- Navigate to the folder for the relevant year and month
- Open the
.cppfile for the date you need - 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.
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.
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.
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 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.
| Platform | Link |
|---|---|
| GitHub | VA-run23 |
| Blog | VSKript |
| GFG Profile | GeeksforGeeks |
Solved daily. Committed honestly. Documented openly.