Skip to content
Blog

Editorials and write-ups.

Sample content
Featured[DATE] · 10 min

[SAMPLE] Editorial: Weekly Round 13 — the DP nobody solved

A walk through problem E from the last club round: the state definition, why the greedy fails, and the O(n) rewrite.

ARarjun_dp
// solution sketch
for (int i = 1; i <= n; i++)
    dp[i] = min(dp[i-1] + a[i], best);
cout << dp[n] << '\n';

// O(n) time, O(1) extra space
[DATE] · 8 min

Editorial: Weekly Round 12, problems A–D

Full solutions with complexity notes, including the two approaches people tried for D.

dpgreedyarjun_dp
[DATE] · 6 min

A practical order for learning graph algorithms

What to learn first, what can wait, and which problems to solve after each topic.

graphsmeher.solves
[DATE] · 5 min

Binary search on the answer, without the off-by-ones

One template that works for both integer and floating-point predicates.

binary searchkx_bitset
[DATE] · 4 min

Setting up a contest-ready C++ environment

Compile flags, a debug macro that prints containers, and a stress-testing script.

setupnidhi_ac
[DATE] · 5 min

Reading a problem statement under time pressure

Where constraints usually give away the intended complexity.

strategyarjun_dp

Write for the club blog

Members can publish editorials after any club round. Drafts are reviewed by the core team before they go live.

Start a draft