Number Encoding
CodeChefOpen on judge ↗
Prateek has asked Ritesh to give his 10-digit mobile number. But, Ritesh wants to **encode digits** of his mobile number before giving it to Prateek. **Decoding:** **(alphabet position(starting with 0)) % 10** e.g., 'a' decodes to 0, since 'a' is at 0th position and 0%10 = 0., 'b' decodes to 1, since 'b' is at 1st position and 1%10 = 1. ..... ..... 'k' decodes t
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