Skip to content

About

Multi-platform competitive programming solutions, reusable DSA templates, and algorithmic revision notes in C++, Python, and Java.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Competitive Programming & Algorithmic Problem Solving

My personal collection of competitive programming solutions, reusable templates, and algorithmic notes that I use for contest practice and interview preparation.


Quick Links

Repository at a Glance

463 solutions • 476 C++ • 2 Python • 2 Java • 17 templates • 20 notes


Live Platform Statistics

Codeforces Rating LeetCode Solved CodeChef Rating Repo Solutions

External Platform Statistics

Public profile statistics from external competitive programming platforms (verified from public APIs, GraphQL, and structured profiles):

Codeforces Rating LeetCode Solved CodeChef Rating Repo Solutions

Platform Profile Status Solves / Rating Key Highlights
LeetCode @prathamkashyap live 573 solved (183 E / 307 M / 83 H) 90.5% AC, #164,340, 142d streak, 12 badges
Codeforces @prathamkashyap live Rating 815 (newbie), 444 solved Max rating 815, Official API verified
CodeChef @prathamkashyap live Rating 922 (★ 1 Star), 700 solved Diamond Badge achieved, Silver League, DSA Monday 1067 (Rank #2,341)
HackerRank @prathamkashyap live 26 stars, 447 solved Problem Solving 6★ (#1,086), SQL 5★ (#1), C++ 5★/Java 5★/Python 5★
HackerEarth @prathamkashyap live 6,690 pts, 273 solved (329 subs) 18 badges
GeeksforGeeks @prathamkashyap live Score 836, 211 solved 69 POTDs solved, 69d streak, 209 subs (2026)
Detailed Platform Breakdown & Honors

LeetCode (@prathamkashyap)

  • Problem Solves: 573 total (Easy: 183, Medium: 307, Hard: 83)
  • Submissions & Acceptance: 1143 submissions, 1034 accepted (90.5% AC rate)
  • Rankings & Streaks: Global Rank #164,340, 142 days current streak, 146 total active days
  • Languages: C++ (552), Java (119), Python3 (119), Pandas (15)
  • Featured Badges: 100 Days Badge 2026, 50 Days Badge 2026, 100 Days Badge 2025, 50 Days Badge 2025, Oct LeetCoding Challenge, Sep LeetCoding Challenge

Codeforces (@prathamkashyap)

  • Current Rating: 815 (newbie) | Max Rating: 815 (newbie)
  • Unique Solved Problems: 444

CodeChef (@prathamkashyap)

  • Rating: 922 (★ 1 Star) | Max Rating: 922 | League: Silver League
  • DSA Monday Rating: 1067 (Rank #2,341) | Global Rank: #17,165
  • Total Problems Solved: 700
  • Badges: Daily Streak - Diamond Badge, Problem Solver - Gold Badge

HackerRank (@prathamkashyap)

  • Skill Badges: Problem Solving (6★, #1,086), C++ (5★, #66,165), Java (5★, #233,631), Python (5★, #355,294), Sql (5★, #1)
  • Total Stars & Solves: 26 stars earned, 447 challenges solved
  • Verified Skills: Algorithm, Javascript(Intermediate), Data Structure, Python(Advanced), React, Css, NodeJs, SQL

HackerEarth (@prathamkashyap)

  • Points & Solves: 6,690 points, 273 solved, 329 solutions submitted
  • Badges: Basic Programming - 1 Star, Basic Programming - 2 Stars, Basic Programming - 3 Stars, Basic Programming - 4 Stars, Basic Programming - 5 Stars, Basic Programming - 6 Stars, Data Structures - 1 Star, Data Structures - 2 Stars, C++ language, Math - 1 Star, Algorithms - 1 Star, Algorithms - 2 Stars, Algorithms - 3 Stars, Novice, Amateur, Explorer, Elite, Master

GeeksforGeeks (@prathamkashyap)

  • Coding Score: 836 | Total Solved: 211 (Basic: 12, Easy: 46, Medium: 124, Hard: 29)
  • Streaks & POTD: 69 POTDs solved, 69 day longest streak
  • 2026 Activity: 209 submissions across 69 active days

See docs/generated/external-stats.md for complete external platform statistics with retrieved metrics, retrieval methods, and timestamps.

Note

External platform statistics represent actual progress on external accounts and are tracked independently from the solution files stored in this repository. Solved counts are maintained separately and not combined into a misleading total.


Repository Map

competitive-programming/
├── codeforces/          # C++ solutions by difficulty rating (800-2000)
├── leetcode/            # LeetCode solutions
├── codechef/            # CodeChef solutions
├── hackerrank/          # HackerRank solutions
├── hackerearth/         # HackerEarth solutions
├── geeksforgeeks/       # GeeksforGeeks solutions
├── atcoder/             # AtCoder solutions
├── cses/                # CSES Problem Set solutions
├── templates/           # Reusable templates (C++, Python, Java)
├── notes/               # Algorithmic theory and cheat sheets
│   ├── cheatsheets/     # Quick reference for contest revision
│   └── pitfalls/       # Common mistakes that cost contests
├── patterns/            # Algorithmic pattern documentation
├── interview/           # Interview preparation material
├── docs/                # Documentation
│   ├── dashboard/      # Interactive stats and problem browser
│   ├── generated/      # Auto-generated statistics
│   ├── patterns.md      # Pattern index
│   └── roadmap.md       # Learning roadmap
└── scripts/             # Repository automation

What's in This Repo

Solutions

  • 400+ Codeforces solutions organized by difficulty rating (800-2000)
  • Multi-platform practice: LeetCode, CodeChef, HackerRank, HackerEarth, GeeksforGeeks, AtCoder, CSES
  • C++ as primary language with Python and Java support

Templates

I maintain a set of copy-paste ready templates for common data structures and algorithms that I reuse in contests:

  • Fast I/O boilerplate
  • DSU, Segment Tree, Fenwick Tree
  • Linear sieve, modular arithmetic
  • Graph traversal (BFS, DFS, Dijkstra)
  • Prefix sums, sliding window

See templates/ for the complete collection.

Notes & Cheat Sheets

Concise reference material I use for contest revision:

  • Complexity analysis and time limits
  • Number theory and modular arithmetic
  • Bit manipulation tricks
  • Graph algorithms and tree queries
  • Dynamic programming patterns
  • Common pitfalls that cost contests

See notes/ for all theory and notes/pitfalls/ for practical mistakes.


How I Compile & Run

C++20 Build

g++ -std=c++20 -O2 -Wall -Wextra solution.cpp -o solution
./solution < input.txt

Fast I/O Template

#include <iostream>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    // solve problem
}

Automation

The repository uses automated scripts and GitHub Actions:

  • Statistics generation - scripts/generate_stats.py scans the repository and generates counts
  • External stats - scripts/external_stats.py fetches live platform statistics daily
  • C++ validation - scripts/validate_cpp.py verifies compilation of all C++ files
  • CI workflow - GitHub Actions validates compilation on push/PR

See scripts/ and .github/workflows/ for details.


Repository Statistics

Generated automatically from the filesystem:

For the complete problem index, see docs/generated/problem-index.md.


Connect

About

Multi-platform competitive programming solutions, reusable DSA templates, and algorithmic revision notes in C++, Python, and Java.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages