Official algorithmic problem description and constraints.
You are given three digits π, π, and π. Determine whether they form a stair, a peak, or neither.
A stair satisfies the condition π<π<π
A peak satisfies the condition π<π>π
Detailed video explanations, mathematical intuition, and clean C++ implementation code.