Official algorithmic problem description and constraints.
No formatted statement stored for this problem.
Detailed video explanations, mathematical intuition, and clean C++ implementation code.