Just for exercise, if people want to give it a go; see how creative one can be.
Problem Statement: Given a list of data from a file( or user input which ever) as such:
char 1
char 2
char 26
char 27
char 52
char 53
output the mapping of the number like so:
char 1 => 'a'
char 2 => 'b'
char 26 = 'z'
char 27 => 'A'
char 52 => 'Z'
char 53 => 'aa'
If you don't see the pattern then here it is:
[1...26] gets mapped to ['a'...'z']
[27...52] gets mapped to ['A'...'Z']
any thing after 52, ex 53 gets wrapped back. For example 53 gets wrapped to 'aa' or 54 gets wrapped to 'bb' or 79 gets wrapped to 'AA'
Free to use any language paradigm....blah...blah...blah, just make sure its understandable.
Difficulty: 2.0f/5.0f