Skip to content

VA-run23/GeeksforGeeks-POTD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

595 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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. 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 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
Blog VSKript
GFG Profile GeeksforGeeks

Solved daily. Committed honestly. Documented openly.

Profile Views

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages