Courses / Data, AI & infrastructure / Competitive Programming Fundamentals

₹69Self-paced

Competitive Programming Fundamentals

Solve contest-style problems by reading constraints, choosing the right algorithm family, proving it and stress-testing your solution under time limits.

  • Who it's for. Learners who have finished Data Structures and Algorithms and want to solve timed programming problems reliably.
  • Before you start. Completion of Data Structures and Algorithms or equivalent: you can write loops, functions, lists, dictionaries, sets, recursion, sorting and a heap in Python (or C++), and state the growth rate of a simple loop.
  • 28 to 48 hours of study with practice
  • 8 modules, 49 lessons
  • 4 guided projects and a final project

What you'll learn

  • Convert a contest statement into a verified input/output contract, edge-case table and brute-force oracle.
  • Prove or refute greedy strategies with exchange arguments and counterexamples.
  • Model problems as graphs and choose BFS, Dijkstra, DSU or topological order with correct complexity.
  • Define dynamic-programming states, transitions and iteration order and reduce memory when valid.
  • Run stress tests, minimize failing inputs and keep a practice log that supports honest self-review.

Skills you'll gain

  • Problem reading
  • contest input/output
  • Greedy reasoning
  • proofs
  • Binary-search patterns
  • Timed practice
  • stress testing
  • review

Tools you'll use

  • Python (or C++)
  • Stress-test harness
  • Brute-force oracles

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Reading problems and constraints

    Turn statements into input/output contracts, interpret verdicts, and use constraint sizes to pick an algorithm class and avoid overflow.

    You build: Guided project: Contract-and-budget worksheet set.

  2. 02

    Modules 3 to 5

    Greedy, search and graphs

    Prove or refute greedy rules, apply binary search on answers, and model problems as graphs with BFS, Dijkstra, DSU or topological order.

    You build: Guided project: Greedy and search solutions with proofs.

  3. 03

    Modules 6 to 8

    DP, number theory and timed practice

    Define DP states and transitions, use modular arithmetic and sieves, then run timed contests with stress tests and an upsolve log.

    You build: Guided project: Graph and DP set with checked complexity; Stress-tested portfolio draft.

Full curriculum

8 modules and 49 lessons, 28 to 48 hours of study

01Problem reading and contest input/output6 lessons, 3 to 4 hours

Lessons

  • Extracting the input-output contract from a statement
  • Fast input in Python and C++ for large inputs
  • Building output correctly: formatting, buffering and many answers
  • Reading judge verdicts as diagnostic evidence
  • Hand-building edge cases from the constraints
  • Writing the one-line model and the brute-force oracle

After this module you can

  • Rewrite a contest statement as a checklist of input format, output format, value ranges and guarantees, and hand-trace the sample to confirm the reading.
  • Choose and apply a bulk-read pattern (sys.stdin.readline or one read of all tokens in Python, sync_with_stdio(false) with cin.tie in C++) and explain why default per-call input is slow on large files.
  • State the problem as a short mathematical model and write a slow but obviously correct brute force that will serve as the oracle for later testing.
02Complexity constraints as design input6 lessons, 3 to 4 hours

Lessons

  • Converting limits into an operation budget
  • Mapping constraint sizes to algorithm classes
  • Integer ranges, overflow and modular answers
  • Hidden constants and language-specific costs
  • Memory limits as arithmetic
  • Generating worst-case inputs to test performance

After this module you can

  • Estimate the number of basic operations a time limit permits and compare it with the operation count of a candidate algorithm for the given n.
  • Given the maximum value of n (and other parameters), list the algorithm classes that are feasible and rule out the rest.
  • Write generators for maximum-size and adversarial inputs (sorted, all equal, star graph, path graph) and use them to check a solution's running time.
03Greedy reasoning and proofs7 lessons, 3 to 5 hours

Lessons

  • Hunting counterexamples to a greedy rule
  • Exchange argument for interval scheduling
  • Sorting with a custom key and the adjacent-swap proof
  • Greedy with a heap: acting on the current extreme
  • Deadline scheduling with a max-heap undo
  • Sweep-line events and tie-breaking
  • Validating a greedy rule against brute force

After this module you can

  • Refute a plausible greedy rule by constructing a small input where the greedy answer is worse than the optimum, and compute both answers by hand.
  • Prove that selecting the interval with the earliest finish time repeatedly yields a maximum-size set of non-overlapping intervals, and implement it in O(n log n).
  • Write a small random-input comparison between a greedy solution and an exhaustive one to find counterexamples automatically.
04Binary-search patterns6 lessons, 3 to 4 hours

Lessons

  • Lower and upper bounds with half-open ranges
  • Binary search on a monotone answer: smallest feasible value
  • Loop invariants, termination and rounding of the midpoint
  • Maximizing the minimum with a reversed predicate
  • Binary search on real numbers and precision
  • Choosing among two pointers, prefix sums and bisect

After this module you can

  • Count and locate values in a sorted array using bisect_left and bisect_right semantics, and explain the partition each returns.
  • Find the minimum value that satisfies a feasibility check by proving the check is monotone and searching the value range, with total cost O(cost of check times log range).
  • Choose between a two-pointer window, prefix sums with bisect and binary search on the answer by checking monotonicity and the sign of the values.
05Graph problems as contest modelling6 lessons, 3 to 4 hours

Lessons

  • Modelling a statement as a graph
  • BFS for fewest steps on unweighted graphs and grids
  • Dijkstra with a heap and stale-entry skipping
  • Disjoint-set union for connectivity and Kruskal
  • Topological order, cycle detection and recursion limits
  • State-expanded graphs: BFS over position and extra state

After this module you can

  • Decide what the nodes, edges, direction and weights are for a statement, build an adjacency list from an edge list, and state V, E and the memory cost.
  • Compute fewest-edge distances with breadth-first search, marking nodes when first queued, and state the O(V + E) cost.
  • Add the information a move depends on (parity, remaining wall breaks) to the node and run BFS on the expanded state graph, counting states for complexity.
06Dynamic programming under contest limits6 lessons, 3 to 4 hours

Lessons

  • Defining the state in one sentence, with base case and order
  • 0/1 knapsack in one dimension and the loop direction
  • Longest increasing subsequence in O(n log n)
  • Two-sequence DP: edit distance, LCS and rolling rows
  • Memoization, tabulation and when recursion depth bites
  • Bitmask DP over subsets for small n

After this module you can

  • Write a DP state as a sentence (dp[i] is ...), derive its transition from the last decision, set the base case and choose the iteration order.
  • Solve a 0/1 selection problem with a 1D table, iterating capacity downward, and explain why the same loop forwards solves the unbounded version.
  • Encode subsets as bitmasks, define dp[mask] and compute assignment or route problems in O(2^n * n) time with a stated memory bound.
07Number-theory patterns for contests6 lessons, 3 to 4 hours

Lessons

  • Modular arithmetic rules and negative remainders
  • Fast exponentiation and modular inverses
  • Euclid's gcd, lcm and overflow-safe combination
  • Sieve of Eratosthenes and smallest-prime-factor tables
  • Trial division up to the square root and divisor counting
  • Binomial coefficients modulo a prime with factorial tables

After this module you can

  • Apply addition, subtraction and multiplication modulo m correctly, normalize negative remainders, and explain why division needs an inverse instead.
  • Compute a^e mod m in O(log e) multiplications and divide modulo a prime using Fermat's inverse, checking when an inverse exists.
  • Answer many C(n, k) mod p queries in O(1) each after O(N) precomputation of factorials and inverse factorials, and know when the method is invalid.
08Timed practice, stress testing and review6 lessons, 3 to 4 hours

Lessons

  • Contest triage and penalty-aware ordering
  • Building a stress-testing loop
  • Shrinking a failing input to a minimal counterexample
  • Upsolving with a cause log
  • Writing a solution explanation with a counterexample
  • Planning practice and measuring it honestly

After this module you can

  • Read every problem in a timed set, estimate difficulty, choose an order, and compute the time and penalty of a plan under a stated scoring rule.
  • Write a loop that runs a generator, a trusted brute force and the solution on many seeded random inputs and stops at the first mismatch, saving the input.
  • Build a weekly practice plan with time-boxed problems, virtual contests and metrics (solved, attempted, time, verdict mix), and choose the next difficulty from the log.

What you'll build

4 guided projects along the way, then a final project.

  • Contract-and-budget worksheet set

    after module 2
  • Greedy and search solutions with proofs

    after module 4
  • Graph and DP set with checked complexity

    after module 6
  • Stress-tested portfolio draft

    after module 8

Final project

Contest-style problem portfolio with explanations and counterexamples.

What you submit

Source and artifact submission as a repository or archive with a README.

How it's reviewed

Trainer-reviewed live demonstration including explaining one counterexample and one complexity claim. Marked against the course project review rubric.

Where you'll use it

  • Estimate from input sizes whether a solution will run within a time budget before writing it.
  • Find a failing input with a stress test and shrink it to the smallest case.

Roles that use these skills

  • Software engineer
  • Backend developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Does this re-teach data structures?

No. It assumes Data Structures and Algorithms and teaches contest technique on top.

What can I submit as the project?

A twelve-problem portfolio, a personal mini-judge in Python, or a mock-contest kit of six original problems.

How is Competitive Programming Fundamentals structured, and is it open now?

It has 8 modules and 49 lessons. It is not yet released to learners.

Be first in when Competitive Programming Fundamentals opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹69Opens soon
Notify me