~/problems
Problems
Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.
Advanced & competitive
Counting
Combinatorics, inclusion-exclusion, Catalan numbers.
9 problems
Advanced & competitive
Counting Combinatorics, inclusion-exclusion, Catalan numbers.
Combinatorics / inclusion-exclusion
- Basics: binomial coefficients with Pascal's triangle basics easy
- Tasting panel with every group easy
- Count distinct rearrangements of a string py · c++ · java easy
- Distribute identical apples py · c++ · java easy
Catalan numbers
- Basics: Non-crossing handshakes around a table basics easy
- Arm-wrestling along a bench easy
- Unique Binary Search Trees py · c++ · java medium
- Counting buy/sell sequences 3 levels Optiver medium
- Generate Parentheses py · c++ · java medium