Description:
New challenges as of 2006 !
You are to create an alias that will accept a text string of
A-Z and a-z characters and increment it and return the output. If the input value contains characters that are not in this range – it will return $null.
The alias must preserve upper and lower cases in their appropriate positions.
If left of string is ‘Z’ then ‘A’ will be appended to the beginning of the string.
If left of string is ‘z’ then ‘a’ will be appended to the beginning of the string.
(Preserving cases even when carrying)
Example:
$inctext(1) = $null
$inctext(1A6aajo46) = $null
$inctext(?) = $null
$inctext(a) = b
$inctext(z) = aa
$inctext(Z) = AA
$inctext(aB) = aC
$inctext(BB) = BC
$inctext(ABC) = ABD
$inctext(ABc) = ABd
$inctext(AbZ) = AcA
$inctext(ZZZ) = AAAA
$inctext(YzZ) = ZaA
$inctext(Zzz) = AAaa
$inctext(zZZ) = aaAA
$inctext(mZzzZZ) = nAaaAA
$inctext(CcC) = CcD
$inctext(ppZ) = pqA
$inctext(aZzZzZ) = bAaAaA
Rules:
No dlls / coms
No sockets
No regular expressions
Alias must be called ‘inctext’
File will be loaded into the REMOTE section
Maximum input text size will be tested from 1 to 900.
May be submitted as .txt or .mrc ONLY
File we will be using to count the code: countcode.mrc
One submission per user.
Entries will be judged on their code size and if they are in working order.
a