oops.. i overlooked and sorry, that its not brainfuck soln...

On Mon, Jan 25, 2010 at 1:26 AM, Deva R <[email protected]> wrote:

> i like one minute one liners .. ;>
>
> 1)
> void printlowerandupper(char c)
> {
>   printf("%c%c", c, 'A'+(c-'a'));
> }
>
> 2) use counting sort if the range is so small like this.. ( 0 to 255)
>
> -Deva
>
>
>
>
> On Sun, Jan 24, 2010 at 3:09 AM, chethanarao <[email protected]>wrote:
>
>> 1)Take in a single character (a-z) in lower-case and print it out,
>> along with the original character, in upper-case.
>> INPUT: a
>> OUTPUT: aA
>>
>>
>> 2)Read input which may consist of any number of non-negative bytes of
>> values ranging from 1-255. Terminate the input by a 0.
>> Print out the input bytes in ascending order, excluding the zero.
>> INPUT: 43690
>> OUTPUT: 3469
>>
>>
>> Can someone solve these problems in brainfuck??
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<algogeeks%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to