Catalan Numbers and Generating Uniform Balanced Bracket Sequences
A tutorial on Catalan numbers and uniform random balanced bracket generation, building bijections and generators from first principles.
A tutorial on Catalan numbers and uniform random balanced bracket generation, building bijections and generators from first principles.
The editorial and behind-the-scenes notes for InterviewForces Contest #1, including solution ideas, testing stories, and bonus problems.
The announcement for InterviewForces Contest #1, a Codeforces-style meme contest with nine problems.
An introduction to Mobius inversion through incidence algebras of posets, with inclusion-exclusion, subset transforms, number theory, and finite differences as examples.
A beginner-friendly guide to binary search as partition-point search, including invariants, variants, language APIs, and optimizations.
An explanation of GCC optimization and target pragmas, what common fake pragmas do not do, and when these flags help or hurt.
A bunch of DFS and BFS ways to traverse a complement graph efficiently, including linear-time BFS and a DSU-style trick for the DFS case.