Odd Operations
You are given an integer $N$. You can perform the following two types of operations on $N$: 1. **Digit Subtraction**: Choose any digit present in the current decimal representation of $N$ and subtract it from $N$. 2. **Digit Reordering**: Rearrange (permute) the digits of $N$ to form a new integer (Leading zeros are not allowed). For example, $1067$ can be rearranged to $7106$ but not to $10670$.
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start