Possible Combinations
CodeChefOpen on judge ↗
A number can be represented by using different combinations of digits Eg: $115$ can be made by $(1,1,5)$ or $(11,5)$ or ..... Here you have to take values from 1 to 26. $A$=1, $B$=2, $C$=3, ........., $Z$=26. Now try to represent the given number in all the combinations with those letters. Eg: $11115$ can be represented by $(AAAAE)$ or $(AAAO)$ or $(AAKE)$ or ...... Finally print
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